From 085e1ab2cfdf16966bb48588ca83932691bf7b84 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Fri, 31 Mar 2017 16:44:13 -0400 Subject: [PATCH] nix-prefetch-git: Only remove .git, not e.g. .gitkeep --- src/script/nix-prefetch-git | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/nix-prefetch-git b/src/script/nix-prefetch-git index 8aa599b9a..2c1d9891e 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 }