#!/bin/sh
git submodule sync --recursive
git submodule update --init --recursive # --remote --merge
git submodule update --init --remote --merge
git commit bundle -m "Sync submodules."
git push

./build_command_t.sh
./build_ycm.sh

#!/bin/sh
git submodule sync --recursive && \
git submodule update --init --remote --merge && \
git submodule update --init --recursive && \ # --remote --merge
git commit bundle -m "Sync submodules." && \
git push

./build_command_t.sh
./build_ycm.sh

Reorder update operations to make (IMHO) more sense: first we sync the URLs (recursively), then we update /init the submodules, then update / init the submodules in the submodules, recursively. My one question is whether we should switch the first and second operations.
Reorder update operations to make (IMHO) more sense: first we sync the URLs (recursively), then we update /init the submodules, then update / init the submodules in the submodules, recursively. My one question is whether we should switch the first and second operations.
