From: Thanh Ha Date: Wed, 14 Feb 2018 21:13:11 +0000 (-0500) Subject: Git submodule update after fetching patch X-Git-Tag: v0.17.0~11 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=a0ea4aa6051fb9d2d54e7e3fab0cf1f52c7f496a;p=releng%2Fglobal-jjb.git Git submodule update after fetching patch For projects that have submodules we need to call `git submodule update` after fetching the patch so that submodule updates caused by the patch are pulled in. Running that command on a repo that does not contain submodules returns cleanly as a noop. Change-Id: Iec76e4c42d9e0132571af477f3ae770e5e360781 Signed-off-by: Thanh Ha --- diff --git a/shell/rtd-verify.sh b/shell/rtd-verify.sh index 2074ecaf..bddc23bd 100644 --- a/shell/rtd-verify.sh +++ b/shell/rtd-verify.sh @@ -20,6 +20,7 @@ if [ "$GERRIT_PROJECT" != "$PROJECT" ]; then fi git fetch origin "$GERRIT_REFSPEC" && git checkout FETCH_HEAD +git submodule update echo "---> Generating docs" cd "$WORKSPACE"