diff options
author | Sebastian Jordan <sebastian.jordan.mail@googlemail.com> | 2022-06-14 00:14:29 +0200 |
---|---|---|
committer | Sebastian Jordan <sebastian.jordan.mail@googlemail.com> | 2022-06-14 00:23:16 +0200 |
commit | 1dfaad73ed98254c1c0522156fe45b115e0a8eb4 (patch) | |
tree | 75c94b8e5dcb00c2ead4c2f9e32f682661bd3bbf /pkgs/build-support/fetchgit | |
parent | b7afa03354a81b0fb38cdafb182180663a9ac93d (diff) |
nix-prefetch-git: Fix inconsistency with fetchgit regarding deepClone
The fetchgit function in nixpkgs sets the leaveDotGit argument to true if deepClone is set to true. nix-prefetch-git did behave differently. It would not assume --leave-dotGit if --deepClone is specified. With this change the inconsistency is addressed by assuming --leave-dotGit if --deepClone is specified.
Diffstat (limited to 'pkgs/build-support/fetchgit')
-rwxr-xr-x | pkgs/build-support/fetchgit/nix-prefetch-git | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/build-support/fetchgit/nix-prefetch-git b/pkgs/build-support/fetchgit/nix-prefetch-git index 4e6f25b8dd7d9..f6a317a888a5b 100755 --- a/pkgs/build-support/fetchgit/nix-prefetch-git +++ b/pkgs/build-support/fetchgit/nix-prefetch-git @@ -105,6 +105,10 @@ for arg; do fi done +if test -n $deepClone; then + leaveDotGit=true +fi + if test -z "$url"; then usage fi |