laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ci/+/30791 )
Change subject: coverity: git pull --recursive / update submodules ......................................................................
coverity: git pull --recursive / update submodules
osmo-trx has just started to use submodules, so let's add the related git commands here.
Related: osmo-trx.git Change-Id I36c65a8c725c4da76dc70006cd96b0a2b6878e84 Change-Id: I876fa0152268bd7a43ca4c452d75c26ebadf7a6e --- M coverity/prepare_source_Osmocom.sh 1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/91/30791/1
diff --git a/coverity/prepare_source_Osmocom.sh b/coverity/prepare_source_Osmocom.sh index 526e9d3..0ea829f 100755 --- a/coverity/prepare_source_Osmocom.sh +++ b/coverity/prepare_source_Osmocom.sh @@ -52,13 +52,13 @@ for proj in $PROJECTS $PROJECTS_DONT_BUILD_TEST; do if [ -d $proj ]; then if [ -z "$SRC_SKIP_FETCH" ]; then - (cd $proj && git fetch && git checkout -f -B master origin/master) + (cd $proj && git fetch && git checkout -f -B master origin/master && git submodule update --recursive --remote) fi if [ -n "$SRC_CLEAN" ]; then git -C "$proj" clean -ffxd fi else - git clone "$(osmo_git_clone_url "$proj")" + git clone --recursive "$(osmo_git_clone_url "$proj")" fi done