ardupilot/Tools/gittools/submodule-sync.sh
2021-11-02 19:24:51 +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