mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-19 20:37:51 +00:00
Update update_script.py
This commit is contained in:
parent
eda447cc4d
commit
4da87946dc
@ -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…
Reference in New Issue
Block a user