summary refs log tree commit diff
path: root/pkgs/build-support/fetchgit
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2016-05-15 00:24:04 +0100
committerDomen Kožar <domen@dev.si>2016-05-15 00:24:04 +0100
commit64a072e3576daae794712d898efe0fa0f44075a0 (patch)
tree1c301cf18b03ecb5ccb062753c3b9c6cea4fc066 /pkgs/build-support/fetchgit
parent25e3c091a07374f49ff74d0a69a4515715bff43b (diff)
downloadnixpkgs-64a072e3576daae794712d898efe0fa0f44075a0.tar
nixpkgs-64a072e3576daae794712d898efe0fa0f44075a0.tar.gz
nixpkgs-64a072e3576daae794712d898efe0fa0f44075a0.tar.bz2
nixpkgs-64a072e3576daae794712d898efe0fa0f44075a0.tar.lz
nixpkgs-64a072e3576daae794712d898efe0fa0f44075a0.tar.xz
nixpkgs-64a072e3576daae794712d898efe0fa0f44075a0.tar.zst
nixpkgs-64a072e3576daae794712d898efe0fa0f44075a0.zip
fetchgit: remove only .git
Source of this change goes back to 2009 and original version of
fetchgit at 205fb0c87eab5dd53c6a0e97b1ff0e48f141c902.

The nondeterminism is really caused by changing .git so leave other
files alone as they might be interesting.

Note: this causes a hash mismatch with Hydra's version of Git Plugin
which we should fix to comply.
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 9352757ea80..fed1350349c 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/..")"