diff --git a/src/script/nix-prefetch-git b/src/script/nix-prefetch-git index 8aa599b9..2c1d9891 100755 --- a/src/script/nix-prefetch-git +++ b/src/script/nix-prefetch-git @@ -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 }