Initialize submodules when they are added after first clone

This commit is contained in:
southerntofu 2020-10-05 19:36:22 +02:00
parent d7610135f0
commit ec926d76bc
1 changed files with 5 additions and 0 deletions

View File

@ -109,6 +109,11 @@ updates() {
error pull_failed
return 3
fi
# Maybe some new submodule was added? We need to clone it
if ! git submodule update --init --recursive; then
error pull_failed
return 3
fi
return 1
fi
return 0