From 9cd0f7ed09cfc833f74b476ec6d1ab3393d859b5 Mon Sep 17 00:00:00 2001 From: Nicolas Pierron Date: Wed, 7 Sep 2011 10:02:17 +0000 Subject: [PATCH] nix-prefetch-git: remove .git in the cloned directory. (Fix issue 116) svn path=/nixpkgs/trunk/; revision=29077 --- pkgs/build-support/fetchgit/nix-prefetch-git | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/fetchgit/nix-prefetch-git b/pkgs/build-support/fetchgit/nix-prefetch-git index 7b05adab08c3..979aa531092d 100755 --- a/pkgs/build-support/fetchgit/nix-prefetch-git +++ b/pkgs/build-support/fetchgit/nix-prefetch-git @@ -210,7 +210,7 @@ clone_user_rev() { 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 }