Skip to content

Commit

Permalink
nix-prefetch-git: Fix inconsistency with fetchgit regarding deepClone
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
seppeljordan committed Jun 13, 2022
1 parent b7afa03 commit 1dfaad7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/build-support/fetchgit/nix-prefetch-git
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ for arg; do
fi
done

if test -n $deepClone; then
leaveDotGit=true
fi

if test -z "$url"; then
usage
fi
Expand Down

0 comments on commit 1dfaad7

Please sign in to comment.