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"
|
ver = "unknown"
|
||||||
if os.path.exists(os.path.join(root_dir, ".git")):
|
if os.path.exists(os.path.join(root_dir, ".git")):
|
||||||
try:
|
try:
|
||||||
ret = subprocess.check_output(["git", "describe"]).strip()
|
ret = subprocess.check_output(["git", "describe", "--tags"]).strip()
|
||||||
ver = ret.decode("utf-8")
|
ver = ret.decode("utf-8")
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user