summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaito <saitowu@gmail.com>2011-11-18 19:48:23 +0800
committerSaito <saitowu@gmail.com>2011-11-18 19:48:23 +0800
commit139c4c2f181719f61e7b27ba23df6c065d795f2a (patch)
treeb55f419df387e0cd20314d5062cc47edcfeb4a8c
parent26bdeb2107d7d55aa89132d9c060421bd377c9f0 (diff)
downloadgitlab-ce-139c4c2f181719f61e7b27ba23df6c065d795f2a.tar.gz
fix diff bug
-rw-r--r--app/views/commits/_text_file.html.haml1
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/)