Update update_script.py

This commit is contained in:
Saifeddine ALOUI 2023-11-06 09:22:38 +01:00 committed by GitHub
parent 2646d0182c
commit e86dc6a160
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,8 +21,8 @@ def run_git_pull():
submodule_repo = submodule.module()
submodule_repo.git.checkout('main')
print(f"Checking out main from {submodule}")
submodule.update()
print(f"Checking out main from {submodule}")
submodule.repo.git.submodule('update', '--remote', submodule.name) # Force submodule update
print(f"Forcing update on {submodule}")
except Exception as ex:
print(f"Couldn't checkout module {submodule}")