make, scripts: git submodule update --init --recursive

Consistently run git submodule update with --init --recursive.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2018-11-18 18:31:30 +00:00
commit adb18caa13
3 changed files with 4 additions and 5 deletions

View file

@ -130,8 +130,7 @@ clone()
else
run_git clone ssh://$login@git.janware.com/srv/git/$fromuser/proj/$p
fi
run_git -C $p submodule init || fatal git submodule init failed in $p
run_git -C $p submodule update || fatal git submodule update failed in $p
run_git -C $p submodule update --init --recursive || fatal git submodule update failed in $p
else
local remotename="user-$fromuser"
if [ -d $p ]; then
@ -151,8 +150,7 @@ clone()
run_git -C $p branch --set-upstream-to origin/master master
# set +x
fi
run_git -C $p submodule init || fatal git submodule init failed in $p
run_git -C $p submodule update || fatal git submodule update failed in $p
run_git -C $p submodule update --init --recursive || fatal git submodule update failed in $p
fi
done
)}