diff options
author | James Tucker <jftucker@gmail.com> | 2013-01-28 14:49:43 -0800 |
---|---|---|
committer | James Tucker <jftucker@gmail.com> | 2013-01-28 14:49:43 -0800 |
commit | 42b11a7fb918127143ca570af9930b2e7ef7222c (patch) | |
tree | f03dd6db8238d0c5b46015b61cf567386c8bd227 | |
parent | 569fd1b53daef7d03388b6064fe9d56dcc3859fb (diff) | |
download | rack-42b11a7fb918127143ca570af9930b2e7ef7222c.tar.gz |
Fix ChangeLog generation on 1.9.3+1.5.1
-rw-r--r-- | Rakefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -52,7 +52,9 @@ task :changelog => %w[ChangeLog] file '.git/index' file "ChangeLog" => '.git/index' do File.open("ChangeLog", "w") { |out| - `git log -z`.split("\0").map { |chunk| + log = `git log -z` + log.force_encoding(Encoding::BINARY) if log.respond_to?(:force_encoding) + log.split("\0").map { |chunk| author = chunk[/Author: (.*)/, 1].strip date = chunk[/Date: (.*)/, 1].strip desc, detail = $'.strip.split("\n", 2) |