1
0
mirror of https://github.com/IEEE-SB-Passau/pelican-deployment-system.git synced 2017-09-06 16:35:38 +02:00

rework submodule updating, they suck really!

This commit is contained in:
2016-06-20 01:16:16 +02:00
parent 27e3d65a01
commit df8b8e915b
2 changed files with 31 additions and 6 deletions

View File

@@ -144,11 +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)
results = repo.submodule_sync_update_init_recursive_force()
for r in results:
log_git(r)
def build(self, abort_running=False, wait=False, ignore_pull_error=False):
with self._build_lock: