1
0
Fork 0
mirror of synced 2024-06-02 02:25:20 +12:00

fix git commit hash location

This commit is contained in:
Nick Sweeting 2022-06-08 19:52:48 -07:00 committed by GitHub
parent 413aa2ef04
commit cb3ebbe69a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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