Checkout masters of every submodule repository

This commit is contained in:
Salt 2018-10-10 16:43:12 -05:00
parent 248bd93d39
commit 62ba24c6c9

View File

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