From 62ba24c6c9617b10a1341ceb0e747790813d8db0 Mon Sep 17 00:00:00 2001 From: Salt Date: Wed, 10 Oct 2018 16:43:12 -0500 Subject: [PATCH] Checkout masters of every submodule repository --- replicate.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/replicate.sh b/replicate.sh index 78d24a1..5d2573a 100755 --- a/replicate.sh +++ b/replicate.sh @@ -60,6 +60,7 @@ rmdir "$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 foreach 'git checkout master && git pull' >> "$logfile" 2>&1 git --git-dir="$gitdir" --work-tree="$homedir" config status.showUntrackedFiles no >> "$logfile" 2>&1 # Print some post-install instructions