Error 500 on commit view
Created by: dcsg
I'm getting the following error when trying to see a specific commit, it only happens sometimes not in all commits. See the error below.
OS: Centos 6.2 Gitlab v3.0.3 Gitolite v3
Rendered commits/_text_file.html.haml (80.4ms)
Rendered commits/_text_file.html.haml (3.1ms)
Rendered commits/_diffs.html.haml (977.0ms)
Rendered commit/show.html.haml within layouts/project_resource (1010.0ms)
Completed 500 Internal Server Error in 1058ms
ActionView::Template::Error (invalid byte sequence in UTF-8):
3: %a.supp_diff_link Diff suppressed. Click to show
4:
5: %table{class: "#{'hide' if too_big}"}
6: - each_diff_line(diff.diff.lines.to_a, index) do |line, type, line_code, line_new, line_old|
7: %tr.line_holder{ id: line_code }
8: - if type == "match"
9: %td.old_line= "..."
app/helpers/commits_helper.rb:23:in `match'
app/helpers/commits_helper.rb:23:in `match'
app/helpers/commits_helper.rb:23:in `block in each_diff_line'
app/helpers/commits_helper.rb:22:in `each'
app/helpers/commits_helper.rb:22:in `each_diff_line'
app/views/commits/_text_file.html.haml:6:in `_app_views_commits__text_file_html_haml__684339409381055832_39444960'
app/views/commits/_diffs.html.haml:36:in `block in _app_views_commits__diffs_html_haml___3628484992513227380_32734220'
app/views/commits/_diffs.html.haml:16:in `each'
app/views/commits/_diffs.html.haml:16:in `each_with_index'
app/views/commits/_diffs.html.haml:16:in `_app_views_commits__diffs_html_haml___3628484992513227380_32734220'
app/views/commit/show.html.haml:2:in `_app_views_commit_show_html_haml__4343727033575831144_67972140'