checkout: silence diffs when checking validity of a commit

Otherwise, when people submit treewide PRs to nixpkgs, the logs get
cluttered with thousands of useless diffs.
This commit is contained in:
Cole Helbling 2020-04-05 09:40:14 -07:00
parent 91f6aee4d5
commit a907ffb488
No known key found for this signature in database
GPG key ID: B37E0F2371016A4C

View file

@ -117,6 +117,7 @@ impl CachedProjectCo {
let result = Command::new("git") let result = Command::new("git")
.arg("--no-pager") .arg("--no-pager")
.arg("show") .arg("show")
.arg("--no-patch")
.arg(commit) .arg(commit)
.current_dir(self.clone_to()) .current_dir(self.clone_to())
.status() .status()