mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-03-23 20:35:16 +00:00
Merge pull request #408 from ParisNeo/ParisNeo-patch-4
Update update_script.py
This commit is contained in:
commit
55231620aa
@ -17,8 +17,11 @@ def run_git_pull():
|
||||
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')
|
||||
try:
|
||||
submodule_repo = submodule.module()
|
||||
submodule_repo.git.checkout('main')
|
||||
except Exception as ex:
|
||||
print(f"Couldn't checkout module {submodule}")
|
||||
except Exception as ex:
|
||||
print("Couldn't update submodules")
|
||||
print(ex)
|
||||
|
Loading…
x
Reference in New Issue
Block a user