display 8 (rather than 7) characters of the extension commit hash in the installed extensions table

This commit is contained in:
AUTOMATIC 2023-02-19 09:54:04 +03:00
parent d023532c55
commit 1646991637

View File

@ -44,7 +44,7 @@ class Extension:
self.status = 'unknown' self.status = 'unknown'
head = repo.head.commit head = repo.head.commit
ts = time.asctime(time.gmtime(repo.head.commit.committed_date)) ts = time.asctime(time.gmtime(repo.head.commit.committed_date))
self.version = f'{head.hexsha[:7]} ({ts})' self.version = f'{head.hexsha[:8]} ({ts})'
except Exception: except Exception:
self.remote = None self.remote = None