mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-03-23 20:35:16 +00:00
Merge pull request #406 from ParisNeo/ParisNeo-patch-2
Update update_script.py
This commit is contained in:
commit
738e1c84e0
@ -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…
x
Reference in New Issue
Block a user