Merge pull request #406 from ParisNeo/ParisNeo-patch-2

Update update_script.py
This commit is contained in:
Saifeddine ALOUI 2023-10-16 08:59:17 +02:00 committed by GitHub
commit 738e1c84e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,10 @@ def run_git_pull():
print("Updating submodules")
try:
repo.git.submodule('update', '--init', '--recursive')
# Checkout the main branch on each submodule
for submodule in repo.submodules:
submodule_repo = submodule.module()
submodule_repo.git.checkout('main')
except:
print("Couldn't update submodules")
return True