Clone repository more shallowly

This commit is contained in:
Salt 2018-10-19 21:10:37 -05:00
parent 670140d2f3
commit 635fdc855a

View File

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