diff --git a/pelican_deploy/deploy.py b/pelican_deploy/deploy.py index 29898b0..6c05669 100644 --- a/pelican_deploy/deploy.py +++ b/pelican_deploy/deploy.py @@ -144,6 +144,9 @@ class DeploymentRunner: def _update_build_repo_submodules(self, repo): log.info("%s build_repo: update submodules", self.name) + # we must update the urls if changed! + result = repo.submodule("sync", "--recursive") + log_git(result) result = repo.submodule("update", "--init", "--force", "--recursive") log_git(result)