Merge pull request #13584 from zimbatm/nix-prefetch-git-json

nix-prefetch-git: change the default output to JSON
This commit is contained in:
zimbatm 2016-03-01 10:07:00 +00:00
commit 0d2e437fc9

View File

@ -325,9 +325,9 @@ print_results() {
fi fi
if test -n "$hash"; then if test -n "$hash"; then
echo "{" echo "{"
echo " url = \"$url\";" echo " \"url\": \"$url\","
echo " rev = \"$fullRev\";" echo " \"rev\": \"$fullRev\","
echo " $hashType = \"$hash\";" echo " \"$hashType\": \"$hash\""
echo "}" echo "}"
fi fi
} }