py/makeversionhdr.py: Use any tag to describe the version.

This commit is contained in:
Scott Shawcroft 2016-10-14 12:50:44 -07:00
parent 8677f957fb
commit c69ea1a143

View File

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