mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
Tools/check_submodules.sh: perform submodule sync again after first update to reach nested submodules
This commit is contained in:
@@ -9,6 +9,7 @@ if [[ -f $1"/.git" || -d $1"/.git" ]]; then
|
|||||||
if [ "$CI" == "true" ] || [ -n "${VSCODE_PID+set}" ]; then
|
if [ "$CI" == "true" ] || [ -n "${VSCODE_PID+set}" ]; then
|
||||||
git submodule --quiet sync --recursive -- $1
|
git submodule --quiet sync --recursive -- $1
|
||||||
git submodule --quiet update --init --recursive --jobs=8 -- $1 || true
|
git submodule --quiet update --init --recursive --jobs=8 -- $1 || true
|
||||||
|
git submodule --quiet sync --recursive -- $1
|
||||||
git submodule --quiet update --init --recursive --jobs=8 -- $1
|
git submodule --quiet update --init --recursive --jobs=8 -- $1
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
@@ -51,6 +52,7 @@ if [[ -f $1"/.git" || -d $1"/.git" ]]; then
|
|||||||
else
|
else
|
||||||
git submodule --quiet sync --recursive --quiet -- $1
|
git submodule --quiet sync --recursive --quiet -- $1
|
||||||
git submodule --quiet update --init --recursive -- $1 || true
|
git submodule --quiet update --init --recursive -- $1 || true
|
||||||
|
git submodule --quiet sync --recursive --quiet -- $1
|
||||||
git submodule --quiet update --init --recursive -- $1
|
git submodule --quiet update --init --recursive -- $1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user