diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-05-21 10:30:00 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-05-21 10:30:09 +0000 |
commit | 696f16e9012ef5ebc3bd36c8011e1cdf9b933ebb (patch) | |
tree | 39ae898ee2368e8c6bcb3cf707e1cce621dffb1e /modules | |
parent | 8e9188aa5afe222cb890ded55cfad41dab50898f (diff) | |
download | stable-diffusion-webui-gfx803-696f16e9012ef5ebc3bd36c8011e1cdf9b933ebb.tar.gz stable-diffusion-webui-gfx803-696f16e9012ef5ebc3bd36c8011e1cdf9b933ebb.tar.bz2 stable-diffusion-webui-gfx803-696f16e9012ef5ebc3bd36c8011e1cdf9b933ebb.zip |
revert git describe --always --tags for extensions because it seems to be causing issues
Diffstat (limited to 'modules')
-rw-r--r-- | modules/extensions.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/extensions.py b/modules/extensions.py index 359a7aa5..624832a0 100644 --- a/modules/extensions.py +++ b/modules/extensions.py @@ -65,11 +65,12 @@ class Extension: try:
self.status = 'unknown'
self.remote = next(repo.remote().urls, None)
- self.commit_date = repo.head.commit.committed_date
+ commit = repo.head.commit
+ self.commit_date = commit.committed_date
if repo.active_branch:
self.branch = repo.active_branch.name
- self.commit_hash = repo.head.commit.hexsha
- self.version = repo.git.describe("--always", "--tags") # compared to `self.commit_hash[:8]` this takes about 30% more time total but since we run it in parallel we don't care
+ self.commit_hash = commit.hexsha
+ self.version = self.commit_hash[:8]
except Exception as ex:
print(f"Failed reading extension data from Git repository ({self.name}): {ex}", file=sys.stderr)
|