Merge pull request #42129 from timbertson/fetchsubmodules

nix-prefetch-git: fix output `fetchSubmodules` property
This commit is contained in:
Matthew Justin Bauer 2018-06-17 16:19:30 -04:00 committed by GitHub
commit 176380dbbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -356,7 +356,7 @@ print_results() {
"rev": "$(json_escape "$fullRev")",
"date": "$(json_escape "$commitDateStrict8601")",
"$(json_escape "$hashType")": "$(json_escape "$hash")",
"fetchSubmodules": $([[ -n "fetchSubmodules" ]] && echo true || echo false)
"fetchSubmodules": $([[ -n "$fetchSubmodules" ]] && echo true || echo false)
}
EOF
fi