about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--Rakefile2
1 files changed, 1 insertions, 1 deletions
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)}"