Author: NicolasPierron
Date: Wed Sep  7 10:02:17 2011
New Revision: 29077
URL: https://svn.nixos.org/websvn/nix/?rev=29077&sc=1

Log:
nix-prefetch-git: remove .git in the cloned directory. (Fix issue 116)

Modified:
   nixpkgs/trunk/pkgs/build-support/fetchgit/nix-prefetch-git

Modified: nixpkgs/trunk/pkgs/build-support/fetchgit/nix-prefetch-git
==============================================================================
--- nixpkgs/trunk/pkgs/build-support/fetchgit/nix-prefetch-git  Wed Sep  7 
10:02:14 2011        (r29076)
+++ nixpkgs/trunk/pkgs/build-support/fetchgit/nix-prefetch-git  Wed Sep  7 
10:02:17 2011        (r29077)
@@ -210,7 +210,7 @@
     eval "$NIX_PREFETCH_GIT_CHECKOUT_HOOK"
     if test -z "$leaveDotGit"; then
        echo "removing \`.git'..." >&2
-        find $out -name .git\* | xargs rm -rf
+        find $dir -name .git\* | xargs rm -rf
     fi
 }
 
_______________________________________________
nix-commits mailing list
nix-comm...@cs.uu.nl
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to