nix-prefetch-git: add fetchLFS flag to the JSON output

Similarly to the other flags (e.g. fetchSubmodules).
This commit is contained in:
Bjørn Forsman 2021-08-15 09:26:37 +02:00
parent 2d2d5ce304
commit 9bd51f0db9

View File

@ -398,6 +398,7 @@ print_results() {
"date": "$(json_escape "$commitDateStrict8601")",
"path": "$(json_escape "$finalPath")",
"$(json_escape "$hashType")": "$(json_escape "$hash")",
"fetchLFS": $([[ -n "$fetchLFS" ]] && echo true || echo false),
"fetchSubmodules": $([[ -n "$fetchSubmodules" ]] && echo true || echo false),
"deepClone": $([[ -n "$deepClone" ]] && echo true || echo false),
"leaveDotGit": $([[ -n "$leaveDotGit" ]] && echo true || echo false)