mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-18 20:17:50 +00:00
Update update_script.py
This commit is contained in:
parent
9a5fd40cb2
commit
e6ffc49059
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user