Skip to content
This repository was archived by the owner on Mar 31, 2025. It is now read-only.

Commit 58a7800

Browse files
Fixed commit hash too long
1 parent 624c70b commit 58a7800

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
try:
1111
git_release_tag = subprocess.check_output(['git', 'describe', '--tags']).decode('utf-8').strip()
12-
git_commit_hash = subprocess.check_output(['git', 'rev-parse', 'HEAD']).decode('utf-8').strip()
12+
git_commit_hash = subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD']).decode('utf-8').strip()
1313
git_commit_date = subprocess.check_output(['git', 'show', '-s', '--format=%ci', 'HEAD']).decode('utf-8').strip()
1414
except subprocess.CalledProcessError:
1515
git_release_tag = "latest"

0 commit comments

Comments
 (0)