Merge pull request #13369 from grahamc/nix-prefetch-git-output-base32

nix-prefetch-git: output base32 hash so output matches nix-build errors
This commit is contained in:
zimbatm 2016-02-22 18:21:11 +00:00
commit c3e9630dfa

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.