Skip to content

Recursive git submodules #30189

Closed Answered by rarkins
Josef-Reichardt asked this question in Request Help
Discussion options

You must be logged in to vote

Renovate doesn't do a regular clone for performance optimization reasons. When doing a branch checkout it does attempt to recurse submodules though:

git.checkout(
submodulesInitizialized
? ['-f', '--recurse-submodules', branchName, '--']
: ['-f', branchName, '--'],
),

I tried adding --recurse to this logic:

for (const submodule of submodules) {
try {
logger.debug(`Cloning git submodule at ${submodule}`);
await gitRetry(() => git.submoduleUpdate(['--init', submodule]));
} catch (err) {
logger.warn(

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Josef-Reichardt
Comment options

Answer selected by rarkins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants