From 898d31b2ffa0383d62bf28c4fa49bc74aa92fde5 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 7 Sep 2009 17:25:09 -0700 Subject: Rakefile: Fix history with multi-paragraph tag messages --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index cdcded1..11bf2a9 100644 --- a/Rakefile +++ b/Rakefile @@ -10,7 +10,7 @@ task :history do tags = `git tag -l`.split(/\n/).grep(/^v/).reverse timefmt = '%Y-%m-%d %H:%M UTC' tags.each do |tag| - header, subject, body = `git cat-file tag #{tag}`.split(/\n\n/) + header, subject, body = `git cat-file tag #{tag}`.split(/\n\n/, 3) tagger = header.split(/\n/).grep(/^tagger /).first.split(/\s/) time = Time.at(tagger[-2].to_i).utc puts "=== #{tag.sub(/^v/, '')} / #{time.strftime(timefmt)}" -- cgit v1.2.3-24-ge0c7