nix-prefetch-git: Only remove .git, not e.g. .gitkeep (#454)

This commit is contained in:
Shea Levy 2017-04-12 15:08:04 -04:00 committed by Domen Kožar
parent 468b048fa2
commit fed37ea640

View file

@ -210,7 +210,7 @@ clone_user_rev() {
eval "$NIX_PREFETCH_GIT_CHECKOUT_HOOK"
if test -z "$leaveDotGit"; then
echo "removing \`.git'..." >&2
find $dir -name .git\* | xargs rm -rf
find $dir -name .git | xargs rm -rf
fi
}