@@ -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