Merge pull request #17 from riveramj/gibberish-translator

Thanks for this :)
This commit is contained in:
Tomasz Gieniusz 2013-08-09 04:33:21 -07:00
commit 74761f8750
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ module GitStats
end
def binary?
repo.run("git cat-file blob #{self.sha} | grep -m 1 '^'") =~ /Binary file/
repo.run("git cat-file blob #{self.sha} | grep -m 1 '^'").force_encoding('ISO-8859-1').encode('utf-8', replace: nil) =~ /Binary file/
end
def to_s