提交 16469916 编写于 作者: A AUTOMATIC

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

上级 d023532c
...@@ -44,7 +44,7 @@ class Extension: ...@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册