0

findGitVersion() ignores non-versiony tags

This commit is contained in:
Aaron Griffith
2013-08-18 16:38:28 -04:00
parent 809ce79a20
commit 6ba77a029c

View File

@@ -52,7 +52,7 @@ def findGitHash():
def findGitVersion(): def findGitVersion():
try: 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() p.stderr.close()
line = p.stdout.readlines()[0] line = p.stdout.readlines()[0]
if line.startswith('release-'): if line.startswith('release-'):