coverity: git pull --recursive / update submodules

osmo-trx has just started to use submodules, so let's add the
related git commands here.

Closes: OS#5846
Related: osmo-trx.git Change-Id I36c65a8c725c4da76dc70006cd96b0a2b6878e84
Change-Id: I876fa0152268bd7a43ca4c452d75c26ebadf7a6e
changes/91/30791/2
Harald Welte 2022-12-27 18:08:56 +01:00
parent 48614942c6
commit 4fdee2a0fc
1 changed files with 2 additions and 2 deletions

View File

@ -52,13 +52,13 @@ cd $BASEDIR
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