Skip to content

Commit

Permalink
Fix ChangeLog generation on 1.9.3+
Browse files Browse the repository at this point in the history
  • Loading branch information
raggi committed Jan 28, 2013
1 parent 569fd1b commit 42b11a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Rakefile
Expand Up @@ -52,7 +52,9 @@ task :changelog => %w[ChangeLog]
file '.git/index' file '.git/index'
file "ChangeLog" => '.git/index' do file "ChangeLog" => '.git/index' do
File.open("ChangeLog", "w") { |out| 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 author = chunk[/Author: (.*)/, 1].strip
date = chunk[/Date: (.*)/, 1].strip date = chunk[/Date: (.*)/, 1].strip
desc, detail = $'.strip.split("\n", 2) desc, detail = $'.strip.split("\n", 2)
Expand Down

0 comments on commit 42b11a7

Please sign in to comment.