1
0
Fork 0
mirror of synced 2024-06-02 10:34:43 +12: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
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((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