Skip to content
This repository
Browse code

Fix ChangeLog generation on 1.9.3+

  • Loading branch information...
commit 42b11a7fb918127143ca570af9930b2e7ef7222c 1 parent 569fd1b
James Tucker authored January 28, 2013

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  Rakefile
4  Rakefile
@@ -52,7 +52,9 @@ task :changelog => %w[ChangeLog]
52 52
 file '.git/index'
53 53
 file "ChangeLog" => '.git/index' do
54 54
   File.open("ChangeLog", "w") { |out|
55  
-    `git log -z`.split("\0").map { |chunk|
  55
+    log = `git log -z`
  56
+    log.force_encoding(Encoding::BINARY) if log.respond_to?(:force_encoding)
  57
+    log.split("\0").map { |chunk|
56 58
       author = chunk[/Author: (.*)/, 1].strip
57 59
       date = chunk[/Date: (.*)/, 1].strip
58 60
       desc, detail = $'.strip.split("\n", 2)

0 notes on commit 42b11a7

Please sign in to comment.
Something went wrong with that request. Please try again.