1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-08-17 20:01:44 +02:00

fix commit hash detection

This commit is contained in:
Nick Sweeting
2022-06-08 19:51:46 -07:00
committed by GitHub
parent 33ec2117e9
commit 413aa2ef04

View File

@@ -220,7 +220,7 @@ def version(quiet: bool=False,
COMMIT_HASH = None COMMIT_HASH = None
try: 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: except Exception as e:
print(e) print(e)
pass pass