fix: snapshot version not based on newest tag

This commit is contained in:
Terry Geng 2020-12-31 17:52:28 +08:00
parent 23dc9d2460
commit 9e07fac5ec
No known key found for this signature in database
GPG Key ID: F982F8EA1DF720E7

View File

@ -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: