From 40f30ce467328eac016b3786a69ce006d30e57aa Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Tue, 24 Oct 2023 10:47:20 -0400 Subject: [PATCH] Perform second submodule update after init --- bootstrap-daemon/pvcbootstrapd/lib/git.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bootstrap-daemon/pvcbootstrapd/lib/git.py b/bootstrap-daemon/pvcbootstrapd/lib/git.py index 6d1fd80..235ed75 100755 --- a/bootstrap-daemon/pvcbootstrapd/lib/git.py +++ b/bootstrap-daemon/pvcbootstrapd/lib/git.py @@ -70,6 +70,7 @@ def pull_repository(config): g.pull(rebase=True, env=dict(GIT_SSH_COMMAND=git_ssh_cmd)) logger.debug("Performing git submodule update") g.submodule("update", "--init", env=dict(GIT_SSH_COMMAND=git_ssh_cmd)) + g.submodule("update", env=dict(GIT_SSH_COMMAND=git_ssh_cmd)) except Exception as e: logger.warn(e) notifications.send_webhook(config, "failure", "Failed to update Git repository")