From 6ba77a029c9e94b3477a55d913f79b35353d5bae Mon Sep 17 00:00:00 2001 From: Aaron Griffith Date: Sun, 18 Aug 2013 16:38:28 -0400 Subject: [PATCH] findGitVersion() ignores non-versiony tags --- overviewer_core/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overviewer_core/util.py b/overviewer_core/util.py index 9840215..32b711c 100644 --- a/overviewer_core/util.py +++ b/overviewer_core/util.py @@ -52,7 +52,7 @@ def findGitHash(): def findGitVersion(): try: - p = Popen('git describe --tags', stdout=PIPE, stderr=PIPE, shell=True) + p = Popen("git describe --tags --match 'v*.*.*'", stdout=PIPE, stderr=PIPE, shell=True) p.stderr.close() line = p.stdout.readlines()[0] if line.startswith('release-'):