GitLab 500 error, while trying to view diff
Error happens, when trying to view commit, create merge request. Maybe, something else, too.
Production log:
Started GET "/api/api/merge_requests/new?merge_request%5Bsource_branch%5D=upd%23617%23upgrade_home_configure&merge_request%5Bsource_project_id%5D=8&merge_request%5Btarget_branch%5D=master&merge_request%5Btarget_project_id%5D=8" for 77.246.234.123 at 2014-10-22 14:55:42 -0400
Processing by Projects::MergeRequestsController#new as HTML
Parameters: {"merge_request"=>{"source_branch"=>"upd#617#upgrade_home_configure", "source_project_id"=>"8", "target_branch"=>"master", "target_project_id"=>"8"}, "project_id"=>"api/api"}
Completed 500 Internal Server Error in 66ms
ActionView::Template::Error (undefined method `[]' for #<Enumerator:0x00000009542758>):
1: - too_big = diff_file.diff_lines.count > Commit::DIFF_SAFE_LINES
2: - if too_big
3: %a.supp_diff_link Changes suppressed. Click to show
4:
lib/gitlab/inline_diff.rb:12:in `block in processing'
lib/gitlab/inline_diff.rb:11:in `each'
lib/gitlab/inline_diff.rb:11:in `processing'
lib/gitlab/diff/parser.rb:14:in `parse'
lib/gitlab/diff/file.rb:15:in `diff_lines'
app/views/projects/diffs/_text_file.html.haml:1:in `_app_views_projects_diffs__text_file_html_haml___819117711535134162_75548000'
app/views/projects/diffs/_file.html.haml:43:in `_app_views_projects_diffs__file_html_haml__3350470005812940325_77114540'
app/views/projects/diffs/_diffs.html.haml:20:in `block in _app_views_projects_diffs__diffs_html_haml___4536352296179818374_74138920'
app/views/projects/diffs/_diffs.html.haml:19:in `each'
app/views/projects/diffs/_diffs.html.haml:19:in `each_with_index'
app/views/projects/diffs/_diffs.html.haml:19:in `_app_views_projects_diffs__diffs_html_haml___4536352296179818374_74138920'
app/views/projects/merge_requests/_new_submit.html.haml:69:in `_app_views_projects_merge_requests__new_submit_html_haml__4479460961432208264_73508600'
app/views/projects/merge_requests/new.html.haml:2:in `_app_views_projects_merge_requests_new_html_haml__2401787074221314632_69138860'
Started GET "/api/api/merge_requests/new?merge_request%5Bsource_branch%5D=upd%23617%23upgrade_home_configure&merge_request%5Bsource_project_id%5D=8&merge_request%5Btarget_branch%5D=master&merge_request%5Btarget_project_id%5D=8" for 77.246.234.123 at 2014-10-22 14:55:42 -0400
Processing by Projects::MergeRequestsController#new as HTML
Parameters: {"merge_request"=>{"source_branch"=>"upd#617#upgrade_home_configure", "source_project_id"=>"8", "target_branch"=>"master", "target_project_id"=>"8"}, "project_id"=>"api/api"}
Completed 500 Internal Server Error in 66ms
ActionView::Template::Error (undefined method `[]' for #<Enumerator:0x0000000a5177c8>):
1: - too_big = diff_file.diff_lines.count > Commit::DIFF_SAFE_LINES
2: - if too_big
3: %a.supp_diff_link Changes suppressed. Click to show
4:
lib/gitlab/inline_diff.rb:12:in `block in processing'
lib/gitlab/inline_diff.rb:11:in `each'
lib/gitlab/inline_diff.rb:11:in `processing'
lib/gitlab/diff/parser.rb:14:in `parse'
lib/gitlab/diff/file.rb:15:in `diff_lines'
app/views/projects/diffs/_text_file.html.haml:1:in `_app_views_projects_diffs__text_file_html_haml___819117711535134162_80356180'
app/views/projects/diffs/_file.html.haml:43:in `_app_views_projects_diffs__file_html_haml__3350470005812940325_86354380'
app/views/projects/diffs/_diffs.html.haml:20:in `block in _app_views_projects_diffs__diffs_html_haml___4536352296179818374_83775140'
app/views/projects/diffs/_diffs.html.haml:19:in `each'
app/views/projects/diffs/_diffs.html.haml:19:in `each_with_index'
app/views/projects/diffs/_diffs.html.haml:19:in `_app_views_projects_diffs__diffs_html_haml___4536352296179818374_83775140'
app/views/projects/merge_requests/_new_submit.html.haml:69:in `_app_views_projects_merge_requests__new_submit_html_haml__4479460961432208264_73894280'
app/views/projects/merge_requests/new.html.haml:2:in `_app_views_projects_merge_requests_new_html_haml__2401787074221314632_78826040'
GitLab is 7.4.0.rc1
Ruby -v:
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux-gnu]
I've got ruby1.9.3p2 before, restarted via service gitlab restart, and the error is still presented. I'm not a rubyist, so, may be I've missed something?