diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-05-16 16:44:55 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-05-16 16:44:55 +0200 |
commit | a5fa7c25cbf34c6b389c4593330d842502c4c0b0 (patch) | |
tree | 1b39659c11cb736063c75a4d35b8bf0b356e1ff5 /pkgs/build-support/fetchgit/nix-prefetch-git | |
parent | 903582798636ac406dbe7b82c502d59fba7b4293 (diff) | |
parent | 64a072e3576daae794712d898efe0fa0f44075a0 (diff) |
Merge pull request #15469 from NixOS/fetchgit
fetchgit: remove only .git folder
Diffstat (limited to 'pkgs/build-support/fetchgit/nix-prefetch-git')
-rwxr-xr-x | pkgs/build-support/fetchgit/nix-prefetch-git | 2 |
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 80544b745177..21359e060eca 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/..")" |