Merge pull request #14111 from ryantrinkle/nix-prefetch-git-submodules-json

nix-prefetch-scripts: make nix-prefetch-git report fetchSubmodules in its JSON output
This commit is contained in:
zimbatm 2016-03-22 20:28:23 +00:00
commit 6c3f9869cc

View File

@ -327,7 +327,12 @@ print_results() {
echo "{"
echo " \"url\": \"$url\","
echo " \"rev\": \"$fullRev\","
echo " \"$hashType\": \"$hash\""
echo -n " \"$hashType\": \"$hash\""
if test -n "$fetchSubmodules"; then
echo ","
echo -n " \"fetchSubmodules\": true"
fi
echo ""
echo "}"
fi
}