mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 06:34:25 -04:00
fix git commit hash location
This commit is contained in:
parent
413aa2ef04
commit
cb3ebbe69a
1 changed files with 1 additions and 1 deletions
|
@ -220,7 +220,7 @@ def version(quiet: bool=False,
|
|||
|
||||
COMMIT_HASH = None
|
||||
try:
|
||||
COMMIT_HASH = list((PACKAGE_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…
Add table
Add a link
Reference in a new issue