improve update-submodule checks:
prevent git 'fatal' failure when using --remote flag in git submodule update command
according to the doc: https://docs.gitlab.com/ci/runners/configure_runners/#git-submodule-update-flags
prevent git 'fatal' failure when using --remote flag in git submodule update command
according to the doc: https://docs.gitlab.com/ci/runners/configure_runners/#git-submodule-update-flags