diff options
author | zimbatm <zimbatm@zimbatm.com> | 2016-02-29 22:47:16 +0000 |
---|---|---|
committer | zimbatm <zimbatm@zimbatm.com> | 2016-02-29 22:47:16 +0000 |
commit | 90de261f3313fab8b82d33df149738be700f2426 (patch) | |
tree | f19143709ce3750c81858d1a6460512a038fd564 /pkgs/build-support/fetchgit | |
parent | 03d1e0fb8f6011bc5fab0e1a2909796a84b91ea5 (diff) |
nix-prefetch-git: change the default output to JSON
As discussed on the mailing list. The nix output was short-lived so it's probably okay to change it.
Diffstat (limited to 'pkgs/build-support/fetchgit')
-rwxr-xr-x | pkgs/build-support/fetchgit/nix-prefetch-git | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/build-support/fetchgit/nix-prefetch-git b/pkgs/build-support/fetchgit/nix-prefetch-git index 22a241d5e0e81..2c9d61504ed25 100755 --- a/pkgs/build-support/fetchgit/nix-prefetch-git +++ b/pkgs/build-support/fetchgit/nix-prefetch-git @@ -325,9 +325,9 @@ print_results() { fi if test -n "$hash"; then echo "{" - echo " url = \"$url\";" - echo " rev = \"$fullRev\";" - echo " $hashType = \"$hash\";" + echo " \"url\": \"$url\"," + echo " \"rev\": \"$fullRev\"," + echo " \"$hashType\": \"$hash\"" echo "}" fi } |