diff options
-rw-r--r-- | app/views/commits/_text_file.html.haml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/commits/_text_file.html.haml b/app/views/commits/_text_file.html.haml index ed9adffd1e0..cb54299a772 100644 --- a/app/views/commits/_text_file.html.haml +++ b/app/views/commits/_text_file.html.haml @@ -2,6 +2,7 @@ - line_new = 0 - lines_arr = diff.diff.lines.to_a - lines_arr.each do |line| + - line = line.force_encoding(Encoding::UTF_8) - next if line.match(/^--- \/dev\/null/) - next if line.match(/^--- a/) - next if line.match(/^\+\+\+ b/) |