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

@ -109,6 +109,7 @@ check_scm()
if [ -d .git ]; then
log + checking git
git pull --no-edit || fatal "git pull failed, giving up"
git submodule update --init --recursive || fatal "git submodule update failed, giving up"
git status --porcelain | grep -v '^??' | grep -q . && {
git status
fatal "git has locally modified files, giving up"