From: Eric Ball Date: Fri, 5 Feb 2021 00:11:09 +0000 (-0800) Subject: Fix rtd-verify submodule update command X-Git-Tag: v0.61.0~2^2 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=9782f58bfec1b324e092e17d42674b44797f2a12;p=releng%2Fglobal-jjb.git Fix rtd-verify submodule update command The old version is missing the "--init" flag, which causes it to not add new submodules. This did not show up as an issue until a new submodule was added in a production environment. Additionally, the "--recursive" flag has been included to ensure proper loading of recursive submodules. Issue: IT-21490 Change-Id: Ie882980d3721ae0e1fea9fa1d3321b86d18be484 Signed-off-by: Eric Ball --- diff --git a/releasenotes/notes/fix-rtd-verify-9af795a7c4c6ecc6.yaml b/releasenotes/notes/fix-rtd-verify-9af795a7c4c6ecc6.yaml new file mode 100644 index 00000000..31d8a491 --- /dev/null +++ b/releasenotes/notes/fix-rtd-verify-9af795a7c4c6ecc6.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + The old version of rtd-verify is missing the "--init" flag, which causes it + to not add new submodules. Additionally, the "--recursive" flag has been + included to ensure proper loading of recursive submodules. diff --git a/shell/rtd-verify.sh b/shell/rtd-verify.sh index 29a991b5..e91dd71c 100644 --- a/shell/rtd-verify.sh +++ b/shell/rtd-verify.sh @@ -28,7 +28,7 @@ if [ "$GERRIT_PROJECT" != "$PROJECT" ]; then fi git fetch origin "$GERRIT_REFSPEC" && git checkout FETCH_HEAD -git submodule update +git submodule update --init --recursive for submod in $(git config -f .gitmodules --get-regexp '^submodule\.(.+)\.url' | awk -e '{print $1}'); do git config --get "$submod" done