From 9054c98ecac8c7b2d40c84262e92cfe6cd6a1e5a Mon Sep 17 00:00:00 2001 From: jllllll <3887729+jllllll@users.noreply.github.com> Date: Thu, 21 Sep 2023 23:00:33 -0500 Subject: [PATCH] Use --autostash on git pull --- webui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui.py b/webui.py index 0fcdaabd..19847879 100644 --- a/webui.py +++ b/webui.py @@ -133,7 +133,7 @@ def update_dependencies(initial_installation=False): git_creation_cmd = 'git init -b main && git remote add origin https://github.com/oobabooga/text-generation-webui && git fetch && git remote set-head origin -a && git reset origin/HEAD && git branch --set-upstream-to=origin/HEAD' run_cmd(git_creation_cmd, environment=True, assert_success=True) - run_cmd("git pull", assert_success=True, environment=True) # TODO is there a better way? + run_cmd("git pull --autostash", assert_success=True, environment=True) # TODO is there a better way? # Install the extensions dependencies (only on the first install) if initial_installation: