From 635fdc855a81cfaa897503c44728178b1a06999a Mon Sep 17 00:00:00 2001 From: Salt Date: Fri, 19 Oct 2018 21:10:37 -0500 Subject: [PATCH] Clone repository more shallowly --- replicate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/replicate.sh b/replicate.sh index c0f4dcf..6748d55 100755 --- a/replicate.sh +++ b/replicate.sh @@ -67,7 +67,7 @@ step_make_skeleton() { step_repo_clone() { # Clone the dotfiles log "Cloning repository into \"$tmpdir\"" - git clone --recursive --depth 100 --separate-git-dir="$gitdir" "$repo" "$tmpdir" >> "$logfile" 2>&1 + git clone --recursive --depth 50 --separate-git-dir="$gitdir" "$repo" "$tmpdir" >> "$logfile" 2>&1 error="$?" if ! [ "$error" -eq "0" ]; then log "Failed cloning repository \"$repo\": git returned $error" 2