diff options
author | Tomeu Vizoso <tomeu.vizoso@collabora.co.uk> | 2010-09-30 07:48:38 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu.vizoso@collabora.co.uk> | 2010-09-30 07:48:38 (GMT) |
commit | baac123c743b677ba1d87b44a0c6cf12a2d40967 (patch) | |
tree | bc1fdd1e009de29eaf241839f7f9084062623343 | |
parent | 872fe4fd41a2642101cfebcf5ef37eb64a77200b (diff) |
Sort the tag list numerically
-rwxr-xr-x | release | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -86,6 +86,7 @@ class Release(object): p = subprocess.Popen(['git', 'tag'], stdout=subprocess.PIPE) tags = p.stdout.read().split('\n') tags = [tag for tag in tags if tag != '' ] + tags.sort(key=lambda x: int(str.replace(x, 'v', ''))) latest_tag = tags[-1] if latest_tag.startswith('v'): latest_tag = latest_tag[1:] |