findGitVersion() ignores non-versiony tags
This commit is contained in:
@@ -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-'):
|
||||||
|
|||||||
Reference in New Issue
Block a user