lol

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

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