GIT_STRATEGY fetch does not correctly update submodule tags

  1. git submodule update doesn't fetch anything if your submodules are up-to-date
  2. So when using the GIT_STRATEGY fetch and the runner already checked out the submodule at the same commit, nothing ist done
  3. If, however, somebody pushed a tag in the meantime to the submodule, the runner will not pick up that tag

The solution could be:

git submodule foreach --recursive 'git fetch --tags'

maybe even with -f for force-pushed tags? Otherwise, they will fail!

Relevant links:

Proposal

To do this we need to update writeSubmoduleUpdateCmd to call for the tags.