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
009012047f
commit
27ae96215c
@ -12,6 +12,11 @@ def run_git_pull():
|
||||
repo = git.Repo(Path(__file__).parent)
|
||||
origin = repo.remotes.origin
|
||||
origin.pull()
|
||||
print("Updating submodules")
|
||||
try:
|
||||
repo.git.submodule('update', '--init', '--recursive')
|
||||
except:
|
||||
print("Couldn't update submodules")
|
||||
return True
|
||||
except git.GitCommandError as e:
|
||||
print(f"Error during git pull: {e}")
|
||||
|
Loading…
Reference in New Issue
Block a user