0

--version now understands vX.X.X tags

This commit is contained in:
Aaron Griffith
2011-09-14 19:01:16 -04:00
parent 130ad8085f
commit 1f9bef14e6

View File

@@ -62,6 +62,8 @@ def findGitVersion():
line = p.stdout.readlines()[0]
if line.startswith('release-'):
line = line.split('-', 1)[1]
if line.startswith('v'):
line = line[1:]
# turn 0.1.2-50-somehash into 0.1.2-50
# and 0.1.3 into 0.1.3
line = '-'.join(line.split('-', 2)[:2])