summary refs log tree commit diff
path: root/pkgs/build-support/fetchgit
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-05-16 16:44:55 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-05-16 16:44:55 +0200
commita5fa7c25cbf34c6b389c4593330d842502c4c0b0 (patch)
tree1b39659c11cb736063c75a4d35b8bf0b356e1ff5 /pkgs/build-support/fetchgit
parent903582798636ac406dbe7b82c502d59fba7b4293 (diff)
parent64a072e3576daae794712d898efe0fa0f44075a0 (diff)
downloadnixpkgs-a5fa7c25cbf34c6b389c4593330d842502c4c0b0.tar
nixpkgs-a5fa7c25cbf34c6b389c4593330d842502c4c0b0.tar.gz
nixpkgs-a5fa7c25cbf34c6b389c4593330d842502c4c0b0.tar.bz2
nixpkgs-a5fa7c25cbf34c6b389c4593330d842502c4c0b0.tar.lz
nixpkgs-a5fa7c25cbf34c6b389c4593330d842502c4c0b0.tar.xz
nixpkgs-a5fa7c25cbf34c6b389c4593330d842502c4c0b0.tar.zst
nixpkgs-a5fa7c25cbf34c6b389c4593330d842502c4c0b0.zip
Merge pull request #15469 from NixOS/fetchgit
fetchgit: remove only .git folder 
Diffstat (limited to 'pkgs/build-support/fetchgit')
-rwxr-xr-xpkgs/build-support/fetchgit/nix-prefetch-git2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/fetchgit/nix-prefetch-git b/pkgs/build-support/fetchgit/nix-prefetch-git
index 80544b74517..21359e060ec 100755
--- a/pkgs/build-support/fetchgit/nix-prefetch-git
+++ b/pkgs/build-support/fetchgit/nix-prefetch-git
@@ -286,7 +286,7 @@ _clone_user_rev() {
     eval "$NIX_PREFETCH_GIT_CHECKOUT_HOOK"
     if test -z "$leaveDotGit"; then
         echo "removing \`.git'..." >&2
-        find "$dir" -name .git\* -print0 | xargs -0 rm -rf
+        find "$dir" -name .git -print0 | xargs -0 rm -rf
     else
         find "$dir" -name .git | while read gitdir; do
             make_deterministic_repo "$(readlink -f "$gitdir/..")"