Update update_script.py

This commit is contained in:
Saifeddine ALOUI 2023-10-16 08:55:02 +02:00 committed by GitHub
parent 009012047f
commit 27ae96215c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}")