Add submodule updating to git-sync-all wrapper script
This commit is contained in:
parent
8e7bc3aeaf
commit
a15a58450d
|
@ -18,7 +18,10 @@ for i in "${!SYNC_DIRS[@]}"; do
|
|||
(
|
||||
cd "$DIRECTORY" || exit
|
||||
git remote set-url origin "$URL"
|
||||
git pull --ff --ff-only
|
||||
git submodule update --remote --recursive
|
||||
git-sync -ns
|
||||
git status --porcelain
|
||||
)
|
||||
done
|
||||
|
||||
|
@ -44,7 +47,7 @@ for i in "${!PULL_DIRS[@]}"; do
|
|||
cd "$DIRECTORY" || exit
|
||||
if [ "$(git branch --show-current)" = "main" ]; then
|
||||
git remote set-url origin "$URL"
|
||||
git pull --ff-only
|
||||
git pull --ff --ff-only
|
||||
git push
|
||||
else
|
||||
echo "Not syncing repo $DIRECTORY on branch $(git branch --show-current)"
|
||||
|
|
Reference in a new issue