From 5e3701a36525dcc580dcf9bad958363d82c19ea5 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Wed, 10 Nov 2021 10:47:44 -0500 Subject: [PATCH] Tools/check_submodules.sh: perform submodule sync again after first update to reach nested submodules --- Tools/check_submodules.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tools/check_submodules.sh b/Tools/check_submodules.sh index 4304070e58..8082491ee2 100755 --- a/Tools/check_submodules.sh +++ b/Tools/check_submodules.sh @@ -9,6 +9,7 @@ if [[ -f $1"/.git" || -d $1"/.git" ]]; then if [ "$CI" == "true" ] || [ -n "${VSCODE_PID+set}" ]; then git submodule --quiet sync --recursive -- $1 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 exit 0 fi @@ -51,6 +52,7 @@ if [[ -f $1"/.git" || -d $1"/.git" ]]; then else git submodule --quiet sync --recursive --quiet -- $1 git submodule --quiet update --init --recursive -- $1 || true + git submodule --quiet sync --recursive --quiet -- $1 git submodule --quiet update --init --recursive -- $1 fi