nix-prefetch-git: output base32 hash so output matches nix-build errors

It turns out hashFormat has never been set.
This commit is contained in:
Graham Christensen 2016-02-22 10:50:27 -06:00
parent e63a3a6ad4
commit 60f354dfb8

View File

@ -326,7 +326,7 @@ else
clone_user_rev "$tmpFile" "$url" "$rev"
# Compute the hash.
hash=$(nix-hash --type $hashType $hashFormat $tmpFile)
hash=$(nix-hash --type $hashType --base32 $tmpFile)
if ! test -n "$QUIET"; then echo "hash is $hash" >&2; fi
# Add the downloaded file to the Nix store.