Skip to content

Force initial fetch to no recurse to submodules

What does this MR do?

Prevents the initial git fetch run by gitlab-runner from recursing into submodules.

Why was this MR needed?

To fix issue #27750 (closed). Without this fix, fetches could fail due to git submodule sync not yet being called.

What's the best way to test this MR?

Create two private gitlab projects, parent project and child project. Make the child a submodule of the parent. On your own private runner, run a CI build that sets git config submodule.recurse true. Then wait 10 minutes (for the current CI_TOKEN to expire) and try the run again.

What are the relevant issue numbers?

#27750 (closed)

Merge request reports