Allow using non-annotated tags for version
This commit is contained in:
parent
6fb848d90e
commit
aff108d7fc
1 changed files with 3 additions and 1 deletions
|
|
@ -7,7 +7,9 @@ def get_current_version():
|
||||||
return os.environ["VERSION"]
|
return os.environ["VERSION"]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
output = subprocess.check_output(["git", "describe"], universal_newlines=True)
|
output = subprocess.check_output(
|
||||||
|
["git", "describe", "--tags"], universal_newlines=True
|
||||||
|
)
|
||||||
return output.strip()
|
return output.strip()
|
||||||
except (subprocess.CalledProcessError, OSError):
|
except (subprocess.CalledProcessError, OSError):
|
||||||
return ""
|
return ""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue