From 7c52eb746f32dacd40e49984b35336956b4ce57b Mon Sep 17 00:00:00 2001 From: Salt Date: Wed, 10 Oct 2018 16:59:46 -0500 Subject: [PATCH] Reduce submodule clone depth --- replicate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/replicate.sh b/replicate.sh index fc6f71d..35b09e6 100755 --- a/replicate.sh +++ b/replicate.sh @@ -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