Reduce submodule clone depth

This commit is contained in:
Salt 2018-10-10 16:59:46 -05:00
parent a6f19a9688
commit 7c52eb746f

View File

@ -58,7 +58,7 @@ rsync -rvl --exclude ".git" "$tempfolder/" "$homedir/" >> "$logfile"
rm -rf "$tempfolder"
# Finish syncing
log "Updating submodules and performing basic configuration"
git --git-dir="$gitdir" --work-tree="$homedir" submodule update --init --recursive --remote >> "$logfile" 2>&1
git --git-dir="$gitdir" --work-tree="$homedir" submodule update --init --recursive --remote --depth 50 >> "$logfile" 2>&1
git --git-dir="$gitdir" --work-tree="$homedir" submodule foreach 'git checkout master && git pull' >> "$logfile" 2>&1
git --git-dir="$gitdir" --work-tree="$homedir" config status.showUntrackedFiles no >> "$logfile" 2>&1