py/makeversionhdr.py: Use any tag to describe the version.
This commit is contained in:
parent
8677f957fb
commit
c69ea1a143
@ -21,7 +21,7 @@ def get_version_info_from_git():
|
||||
|
||||
# Note: git describe doesn't work if no tag is available
|
||||
try:
|
||||
git_tag = subprocess.check_output(["git", "describe", "--dirty", "--always"], stderr=subprocess.STDOUT, universal_newlines=True).strip()
|
||||
git_tag = subprocess.check_output(["git", "describe", "--dirty", "--always", "--tags"], stderr=subprocess.STDOUT, universal_newlines=True).strip()
|
||||
except subprocess.CalledProcessError as er:
|
||||
if er.returncode == 128:
|
||||
# git exit code of 128 means no repository found
|
||||
|
Loading…
x
Reference in New Issue
Block a user