fix: snapshot version not based on newest tag
This commit is contained in:
parent
23dc9d2460
commit
9e07fac5ec
2
util.py
2
util.py
@ -467,7 +467,7 @@ def get_snapshot_version():
|
||||
ver = "unknown"
|
||||
if os.path.exists(os.path.join(root_dir, ".git")):
|
||||
try:
|
||||
ret = subprocess.check_output(["git", "describe"]).strip()
|
||||
ret = subprocess.check_output(["git", "describe", "--tags"]).strip()
|
||||
ver = ret.decode("utf-8")
|
||||
except FileNotFoundError:
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user