We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8677f95 commit c69ea1aCopy full SHA for c69ea1a
py/makeversionhdr.py
@@ -21,7 +21,7 @@ def get_version_info_from_git():
21
22
# Note: git describe doesn't work if no tag is available
23
try:
24
- 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()
25
except subprocess.CalledProcessError as er:
26
if er.returncode == 128:
27
# git exit code of 128 means no repository found
0 commit comments