3
0
Fork 0
forked from mirrors/nixpkgs

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

svn path=/nixpkgs/trunk/; revision=29077
This commit is contained in:
Nicolas Pierron 2011-09-07 10:02:17 +00:00
parent 0608f1a9b5
commit 9cd0f7ed09

View file

@ -210,7 +210,7 @@ clone_user_rev() {
eval "$NIX_PREFETCH_GIT_CHECKOUT_HOOK" eval "$NIX_PREFETCH_GIT_CHECKOUT_HOOK"
if test -z "$leaveDotGit"; then if test -z "$leaveDotGit"; then
echo "removing \`.git'..." >&2 echo "removing \`.git'..." >&2
find $out -name .git\* | xargs rm -rf find $dir -name .git\* | xargs rm -rf
fi fi
} }