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"]
|
||||
|
||||
try:
|
||||
output = subprocess.check_output(["git", "describe"], universal_newlines=True)
|
||||
output = subprocess.check_output(
|
||||
["git", "describe", "--tags"], universal_newlines=True
|
||||
)
|
||||
return output.strip()
|
||||
except (subprocess.CalledProcessError, OSError):
|
||||
return ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue