aboutsummaryrefslogtreecommitdiffstats
path: root/modules/launch_utils.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-09-30 06:23:32 +0000
committerGitHub <noreply@github.com>2023-09-30 06:23:32 +0000
commitb20cd352d913368b9969e9f32c1451a067b6a66b (patch)
treed41aa14a4b7eeb4668cc49c0489fa65f1eb9fd3c /modules/launch_utils.py
parent3a4290f8331164e4e9778b1d5fe3e27d4bb8f349 (diff)
parent5b761b49ade392eb8ff4c54ab1841b63475b5dd0 (diff)
downloadstable-diffusion-webui-gfx803-b20cd352d913368b9969e9f32c1451a067b6a66b.tar.gz
stable-diffusion-webui-gfx803-b20cd352d913368b9969e9f32c1451a067b6a66b.tar.bz2
stable-diffusion-webui-gfx803-b20cd352d913368b9969e9f32c1451a067b6a66b.zip
Merge pull request #13210 from AUTOMATIC1111/fetch-version-info-when-webui_dir-is-not-work_dir-
fix issues when webui_dir is not work_dir
Diffstat (limited to 'modules/launch_utils.py')
-rw-r--r--modules/launch_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/launch_utils.py b/modules/launch_utils.py
index 6e54d063..8cdbafa5 100644
--- a/modules/launch_utils.py
+++ b/modules/launch_utils.py
@@ -64,7 +64,7 @@ Use --skip-python-version-check to suppress this warning.
@lru_cache()
def commit_hash():
try:
- return subprocess.check_output([git, "rev-parse", "HEAD"], shell=False, encoding='utf8').strip()
+ return subprocess.check_output([git, "-C", script_path, "rev-parse", "HEAD"], shell=False, encoding='utf8').strip()
except Exception:
return "<none>"
@@ -72,7 +72,7 @@ def commit_hash():
@lru_cache()
def git_tag():
try:
- return subprocess.check_output([git, "describe", "--tags"], shell=False, encoding='utf8').strip()
+ return subprocess.check_output([git, "-C", script_path, "describe", "--tags"], shell=False, encoding='utf8').strip()
except Exception:
try: