summaryrefslogtreecommitdiffstats
path: root/pkgs/build-support
diff options
context:
space:
mode:
authorConnor Clark <connor@awakenetworks.com>2017-01-03 18:54:13 -0800
committerConnor Clark <connor@awakenetworks.com>2017-01-03 18:57:37 -0800
commitc7ba4643a963999cb63e6d7835fdabf71d3e95a1 (patch)
tree4e7a0afb8514583ecd29f266de86cee45df474d3 /pkgs/build-support
parentfa89f84c546b2f7e669cacb4e457e2460a487e0a (diff)
nix-prefetch-git: remove call to non-existent print_metadata command; improve hash mismatch error message.
Diffstat (limited to 'pkgs/build-support')
-rwxr-xr-xpkgs/build-support/fetchgit/nix-prefetch-git3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgs/build-support/fetchgit/nix-prefetch-git b/pkgs/build-support/fetchgit/nix-prefetch-git
index f71d9ac55bc0..3d656eba5fff 100755
--- a/pkgs/build-support/fetchgit/nix-prefetch-git
+++ b/pkgs/build-support/fetchgit/nix-prefetch-git
@@ -406,8 +406,7 @@ else
finalPath=$(nix-store --add-fixed --recursive "$hashType" "$tmpFile")
if test -n "$expHash" -a "$expHash" != "$hash"; then
- print_metadata
- echo "hash mismatch for URL \`$url'" >&2
+ echo "hash mismatch for URL \`$url'. Got \`$hash'; expected \`$expHash'." >&2
exit 1
fi
fi