summary refs log tree commit diff
path: root/pkgs/build-support/fetchgit/builder.sh
diff options
context:
space:
mode:
authorRob Vermaas <rob.vermaas@gmail.com>2010-01-27 12:12:35 +0000
committerRob Vermaas <rob.vermaas@gmail.com>2010-01-27 12:12:35 +0000
commit13417770a3f6c5b1fc77fa8211505137f1758570 (patch)
tree77f45f3e20e742ee71f1800fcd9006c6fdd8da6c /pkgs/build-support/fetchgit/builder.sh
parent77bf39bf826fe945838e6868ae065ad08c29141c (diff)
downloadnixlib-13417770a3f6c5b1fc77fa8211505137f1758570.tar
nixlib-13417770a3f6c5b1fc77fa8211505137f1758570.tar.gz
nixlib-13417770a3f6c5b1fc77fa8211505137f1758570.tar.bz2
nixlib-13417770a3f6c5b1fc77fa8211505137f1758570.tar.lz
nixlib-13417770a3f6c5b1fc77fa8211505137f1758570.tar.xz
nixlib-13417770a3f6c5b1fc77fa8211505137f1758570.tar.zst
nixlib-13417770a3f6c5b1fc77fa8211505137f1758570.zip
applying patches provided by griswold
svn path=/nixpkgs/trunk/; revision=19707
Diffstat (limited to 'pkgs/build-support/fetchgit/builder.sh')
-rw-r--r--pkgs/build-support/fetchgit/builder.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/build-support/fetchgit/builder.sh b/pkgs/build-support/fetchgit/builder.sh
index 08a1cc5d3419..ba06aed90e18 100644
--- a/pkgs/build-support/fetchgit/builder.sh
+++ b/pkgs/build-support/fetchgit/builder.sh
@@ -7,7 +7,9 @@ if test -n "$rev"; then
   cd $out
   git checkout $rev
 fi
-find $out -name .git\* | xargs rm -rf
 
-stopNest
+if test -z "$leaveDotGit"; then
+    find $out -name .git\* | xargs rm -rf
+fi
 
+stopNest