diff options
author | vladlearns <vladlearns@gmail.com> | 2023-03-09 14:56:06 +0000 |
---|---|---|
committer | vladlearns <vladlearns@gmail.com> | 2023-03-09 14:56:06 +0000 |
commit | 13081dd45ece33457f6cb2cad3a8e7840a0a6eaf (patch) | |
tree | 5c70d2d2e632c6da6a3179c7f92bed08060c2934 | |
parent | b07b7057f0636aa142471ec27841a8001a85f98b (diff) | |
download | stable-diffusion-webui-gfx803-13081dd45ece33457f6cb2cad3a8e7840a0a6eaf.tar.gz stable-diffusion-webui-gfx803-13081dd45ece33457f6cb2cad3a8e7840a0a6eaf.tar.bz2 stable-diffusion-webui-gfx803-13081dd45ece33457f6cb2cad3a8e7840a0a6eaf.zip |
chore: added autostash flag to pull
-rw-r--r-- | launch.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -165,7 +165,7 @@ def git_pull_recursive(dir): for subdir, _, _ in os.walk(dir):
if os.path.exists(os.path.join(subdir, '.git')):
try:
- output = subprocess.check_output(['git', '-C', subdir, 'pull'])
+ output = subprocess.check_output(['git', '-C', subdir, 'pull', '--autostash'])
print(f"Pulled changes for repository in '{subdir}':\n{output.decode('utf-8').strip()}\n")
except subprocess.CalledProcessError as e:
print(f"Couldn't perform 'git pull' on repository in '{subdir}':\n{e.output.decode('utf-8').strip()}\n")
|