ardupilot/Tools/gittools/submodule-sync.sh
2021-10-27 06:24:41 +11:00

13 lines
373 B
Bash
Executable File

#!/bin/sh
# this copes with moving origin remote to a new git organisation
# we run it 3 times due to the poor handling of recursion
git submodule update --recursive --force --init
git submodule sync --recursive
git submodule update --recursive --force --init
git submodule sync --recursive
git submodule update --recursive --force --init
git submodule sync --recursive