From baac123c743b677ba1d87b44a0c6cf12a2d40967 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Thu, 30 Sep 2010 07:48:38 +0000 Subject: Sort the tag list numerically --- 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:] -- cgit v0.9.1