about summary refs log tree commit homepage
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index edd5e8a..5fe5837 100644
--- a/Rakefile
+++ b/Rakefile
@@ -6,7 +6,7 @@ task "NEWS" do
   latest = nil
   fp = Tempfile.new("NEWS", ".")
   fp.sync = true
-  `git tag -l`.split(/\n/).reverse.each do |tag|
+  `git tag -l --sort=-v:refname`.split(/\n/).each do |tag|
     %r{\Av(.+)} =~ tag or next
     version = $1
     header, subject, body = `git cat-file tag #{tag}`.split(/\n\n/, 3)