mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-01-21 03:22:38 +08:00
fix commit hash detection
This commit is contained in:
parent
33ec2117e9
commit
413aa2ef04
@ -220,7 +220,7 @@ def version(quiet: bool=False,
|
||||
|
||||
COMMIT_HASH = None
|
||||
try:
|
||||
COMMIT_HASH = list((SOURCE_DIR / '.git/refs/heads/').glob('*'))[0].read_text()
|
||||
COMMIT_HASH = list((PACKAGE_DIR / '.git/refs/heads/').glob('*'))[0].read_text()
|
||||
except Exception as e:
|
||||
print(e)
|
||||
pass
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user