git.iko.soy/typeable/nixpkgs
on master help sign in
nix-prefetch-git: add --quiet flag and minor cleanup
commit456cbb29d9ba0cd518e82d2c2dc68e665629595e authorTim Cuthbertson <tim@gfxmonk.net> dateSun 13 Dec 2015, 11:27 (11 years ago) parent96425df
1 file changed+3−2
pkgs/build-support/fetchgit/nix-prefetch-git+3−2
pkgs/build-support/fetchgit/nix-prefetch-git+3−2
@@ -52,6 +52,7 @@ for arg; do
5252 --hash) argfun=set_hashType;;
5353 --branch-name) argfun=set_branchName;;
5454 --deepClone) deepClone=true;;
55+ --quiet) QUIET=true;;
5556 --no-deepClone) deepClone=false;;
5657 --leave-dotGit) leaveDotGit=true;;
5758 --fetch-submodules) fetchSubmodules=true;;
@@ -281,9 +282,9 @@ clone_user_rev() {
281282 eval "$NIX_PREFETCH_GIT_CHECKOUT_HOOK"
282283 if test -z "$leaveDotGit"; then
283284 echo "removing \`.git'..." >&2
284− find $dir -name .git\* | xargs rm -rf
285+ find "$dir" -name .git\* -print0 | xargs -0 rm -rf
285286 else
286− find $dir -name .git | while read gitdir; do
287+ find "$dir" -name .git | while read gitdir; do
287288 make_deterministic_repo "$(readlink -f "$gitdir/..")"
288289 done
289290 fi