forked from lix-project/hydra
nix-prefetch-git: Only remove .git, not e.g. .gitkeep (#454)
This commit is contained in:
parent
468b048fa2
commit
fed37ea640
|
@ -210,7 +210,7 @@ clone_user_rev() {
|
||||||
eval "$NIX_PREFETCH_GIT_CHECKOUT_HOOK"
|
eval "$NIX_PREFETCH_GIT_CHECKOUT_HOOK"
|
||||||
if test -z "$leaveDotGit"; then
|
if test -z "$leaveDotGit"; then
|
||||||
echo "removing \`.git'..." >&2
|
echo "removing \`.git'..." >&2
|
||||||
find $dir -name .git\* | xargs rm -rf
|
find $dir -name .git | xargs rm -rf
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue