lol

nix-prefetch-git: add --quiet flag and minor cleanup

+3 -2
+3 -2
pkgs/build-support/fetchgit/nix-prefetch-git
··· 52 52 --hash) argfun=set_hashType;; 53 53 --branch-name) argfun=set_branchName;; 54 54 --deepClone) deepClone=true;; 55 + --quiet) QUIET=true;; 55 56 --no-deepClone) deepClone=false;; 56 57 --leave-dotGit) leaveDotGit=true;; 57 58 --fetch-submodules) fetchSubmodules=true;; ··· 281 282 eval "$NIX_PREFETCH_GIT_CHECKOUT_HOOK" 282 283 if test -z "$leaveDotGit"; then 283 284 echo "removing \`.git'..." >&2 284 - find $dir -name .git\* | xargs rm -rf 285 + find "$dir" -name .git\* -print0 | xargs -0 rm -rf 285 286 else 286 - find $dir -name .git | while read gitdir; do 287 + find "$dir" -name .git | while read gitdir; do 287 288 make_deterministic_repo "$(readlink -f "$gitdir/..")" 288 289 done 289 290 fi