Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomeu 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)
commitbaac123c743b677ba1d87b44a0c6cf12a2d40967 (patch)
treebc1fdd1e009de29eaf241839f7f9084062623343
parent872fe4fd41a2642101cfebcf5ef37eb64a77200b (diff)
Sort the tag list numerically
-rwxr-xr-xrelease1
1 files changed, 1 insertions, 0 deletions
diff --git a/release b/release
index 12ffe7d..2f40ad1 100755
--- a/release
+++ b/release
@@ -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:]