Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaito <saitowu@gmail.com>2011-11-18 15:48:23 +0400
committerSaito <saitowu@gmail.com>2011-11-18 15:48:23 +0400
commit139c4c2f181719f61e7b27ba23df6c065d795f2a (patch)
treeb55f419df387e0cd20314d5062cc47edcfeb4a8c /app/views/commits/_text_file.html.haml
parent26bdeb2107d7d55aa89132d9c060421bd377c9f0 (diff)
fix diff bug
Diffstat (limited to 'app/views/commits/_text_file.html.haml')
-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/)