Browse files

Merge pull request #6 from brickattack/patch-1

Fix. Without 'lines', would throw undefined method 'each' on String.
  • Loading branch information...
2 parents b037dac + 8e32af5 commit 654cd545b63aecb3e808fea14fc6da26a1a27665 @jwiegley committed Dec 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 git-rank-contributors
View
2 git-rank-contributors
@@ -32,7 +32,7 @@ obfuscate = ARGV.delete("-o")
author = nil
state = :pre_author
-`git log -p --no-color`.each do |l|
+`git log -p --no-color`.lines.each do |l|
case
when (state == :pre_author || state == :post_author) && l =~ /Author: (.*)$/
author = $1

0 comments on commit 654cd54

Please sign in to comment.