Fix VERSION

This commit is contained in:
Zhichang Yu
2024-12-07 16:56:34 +08:00
parent 44d4686b20
commit e267a026f3
3 changed files with 2 additions and 18 deletions

View File

@ -43,7 +43,7 @@ def get_closest_tag_and_count():
try:
# Get the current commit hash
version_info = (
subprocess.check_output(["git", "describe", "--tags", "--match=v*", "--always"])
subprocess.check_output(["git", "describe", "--tags", "--match=v*", "--first-parent", "--always"])
.strip()
.decode("utf-8")
)