Fix release.py

This commit is contained in:
Zhichang Yu
2024-12-06 22:31:27 +08:00
parent 885418f3b0
commit 8cdb805c0b
3 changed files with 12 additions and 2 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*", "--dirty"])
subprocess.check_output(["git", "describe", "--tags", "--match=v*", "--dirty", "--always"])
.strip()
.decode("utf-8")
)