Merge pull request #15469 from NixOS/fetchgit
fetchgit: remove only .git folder
This commit is contained in:
commit
a5fa7c25cb
1 changed files with 1 additions and 1 deletions
|
@ -286,7 +286,7 @@ _clone_user_rev() {
|
|||
eval "$NIX_PREFETCH_GIT_CHECKOUT_HOOK"
|
||||
if test -z "$leaveDotGit"; then
|
||||
echo "removing \`.git'..." >&2
|
||||
find "$dir" -name .git\* -print0 | xargs -0 rm -rf
|
||||
find "$dir" -name .git -print0 | xargs -0 rm -rf
|
||||
else
|
||||
find "$dir" -name .git | while read gitdir; do
|
||||
make_deterministic_repo "$(readlink -f "$gitdir/..")"
|
||||
|
|
Loading…
Reference in a new issue