When I deploy a project on Cloudflare

When I deploy a project on Cloudflare Pages that includes Git submodules, does Cloudflare Pages automatically fetch and update those submodules to their latest commits during deployment?
2 Replies
petebd
petebd6mo ago
Not sure. Let me ask the Pages peeps By default when the repository gets cloned, git should pull in the submodules. But I don't think it will update them since would require something like git submodule update... and then a new commit pushed back to the repository Actually we have this line in the Pages CI go code:
util.run_buildbot_cmd(['git', 'submodule', 'update', '--init',
'--recursive'], cwd=constants.CLONE_DIR, logs=logs)
util.run_buildbot_cmd(['git', 'submodule', 'update', '--init',
'--recursive'], cwd=constants.CLONE_DIR, logs=logs)
So that suggests that we will update submodules as part of the deploy.
Rohan Vashisht
Rohan VashishtOP6mo ago
thanks a lot

Did you find this page helpful?