From 413aa2ef04da90013fe97731aca2a1fe0f8cdb47 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Wed, 8 Jun 2022 19:51:46 -0700 Subject: [PATCH] fix commit hash detection --- archivebox/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archivebox/main.py b/archivebox/main.py index 1011e033..f8a781e8 100755 --- a/archivebox/main.py +++ b/archivebox/main.py @@ -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