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
2646d0182c
commit
e86dc6a160
@ -21,8 +21,8 @@ def run_git_pull():
|
|||||||
submodule_repo = submodule.module()
|
submodule_repo = submodule.module()
|
||||||
submodule_repo.git.checkout('main')
|
submodule_repo.git.checkout('main')
|
||||||
print(f"Checking out main from {submodule}")
|
print(f"Checking out main from {submodule}")
|
||||||
submodule.update()
|
submodule.repo.git.submodule('update', '--remote', submodule.name) # Force submodule update
|
||||||
print(f"Checking out main from {submodule}")
|
print(f"Forcing update on {submodule}")
|
||||||
|
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
print(f"Couldn't checkout module {submodule}")
|
print(f"Couldn't checkout module {submodule}")
|
||||||
|
Loading…
Reference in New Issue
Block a user