tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
nix-prefetch-git: add --quiet flag and minor cleanup
Tim Cuthbertson
10 years ago
456cbb29
96425dfa
+3
-2
1 changed file
expand all
collapse all
unified
split
pkgs
build-support
fetchgit
nix-prefetch-git
+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
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
284
-
find $dir -name .git\* | xargs rm -rf
285
285
+
find "$dir" -name .git\* -print0 | xargs -0 rm -rf
285
286
else
286
286
-
find $dir -name .git | while read gitdir; do
287
287
+
find "$dir" -name .git | while read gitdir; do
287
288
make_deterministic_repo "$(readlink -f "$gitdir/..")"
288
289
done
289
290
fi