From c69ea1a14395119a19780f5e95e2a236ed924d81 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Fri, 14 Oct 2016 12:50:44 -0700 Subject: [PATCH] py/makeversionhdr.py: Use any tag to describe the version. --- py/makeversionhdr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/makeversionhdr.py b/py/makeversionhdr.py index 1d8f59bd22..69b9730eaf 100644 --- a/py/makeversionhdr.py +++ b/py/makeversionhdr.py @@ -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