Browse files

don't trust git encoding

  • Loading branch information...
1 parent 3b620cb commit 4e3487cfe9708ac37ca844ad7f60ddd2ac77c49b @rkh rkh committed Mar 11, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 Rakefile
View
1 Rakefile
@@ -117,6 +117,7 @@ task :authors, [:commit_range, :format, :sep] do |t, a|
"a_user@mac.com" => blake, "ichverstehe" => "Harry Vangberg",
"Wu Jiang (nouse)" => "Wu Jiang" }
`git shortlog -s #{a.commit_range}`.lines.map do |line|
+ line = line.force_encoding 'binary' if line.respond_to? :force_encoding
num, name = line.split("\t", 2).map(&:strip)
authors[mapping[name] || name] += num.to_i
overall += num.to_i

0 comments on commit 4e3487c

Please sign in to comment.