From 27ae96215c72da93b2d2f48f580c94e8723e581d Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Mon, 16 Oct 2023 08:55:02 +0200 Subject: [PATCH] Update update_script.py --- update_script.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/update_script.py b/update_script.py index 812fa2cb..1d6761b3 100644 --- a/update_script.py +++ b/update_script.py @@ -12,6 +12,11 @@ def run_git_pull(): repo = git.Repo(Path(__file__).parent) origin = repo.remotes.origin origin.pull() + print("Updating submodules") + try: + repo.git.submodule('update', '--init', '--recursive') + except: + print("Couldn't update submodules") return True except git.GitCommandError as e: print(f"Error during git pull: {e}")