diff --git a/bloom/git.py b/bloom/git.py index 88dfce3d..5e03deb2 100755 --- a/bloom/git.py +++ b/bloom/git.py @@ -36,6 +36,7 @@ import os import functools +import re import shutil import subprocess import tempfile @@ -686,7 +687,8 @@ def get_last_tag_by_version(directory=None): versions = [] for line in output.splitlines(): tags.append(line.strip()) - versions.append(version.parse(line.lstrip('upstream/').strip())) + ver = re.match("[0-9]+.[0-9]+.[0-9]+", line) + versions.append(ver) return tags[versions.index(max(versions))] if versions else ''