From fed37ea6408c84eeb1bea06b17aa3e4c6da568c1 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Wed, 12 Apr 2017 15:08:04 -0400 Subject: [PATCH] nix-prefetch-git: Only remove .git, not e.g. .gitkeep (#454) --- 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 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 }