mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
Merge pull request #15469 from NixOS/fetchgit
fetchgit: remove only .git folder
This commit is contained in:
commit
a5fa7c25cb
@ -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 New Issue
Block a user