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 <thanh.ha@linuxfoundation.org>
fi
git fetch origin "$GERRIT_REFSPEC" && git checkout FETCH_HEAD
+git submodule update
echo "---> Generating docs"
cd "$WORKSPACE"