Commit compare view
Created by: Danpiel
Error in compare view when compairing commit and master
Using GitLab Version: 4.2.0 Revision: d67117b5
All tests finished with ok
Works through apache proxy and unicorn.
from production.log
..............
Rendered commits/_text_file.html.haml (14.7ms)
Rendered commits/_text_file.html.haml (226.5ms)
Rendered commits/_text_file.html.haml (19.5ms)
Rendered compare/show.html.haml within layouts/project_resource (15158.5ms)
Completed 500 Internal Server Error in 22904ms
ActionView::Template::Error (undefined method `lines' for nil:NilClass):
15: .files
16: - unless @suppress_diff
17: - diffs.each_with_index do |diff, i|
18: - next if diff.diff.empty?
19: - file = (@commit.tree / diff.new_path)
20: - file = (@commit.prev_commit.tree / diff.old_path) unless file
21: - next unless file
app/views/commits/_diffs.html.haml:18:in `block in _app_views_commits__diffs_html_haml___2056977652344232235_34249560'
app/views/commits/_diffs.html.haml:17:in `each'
app/views/commits/_diffs.html.haml:17:in `each_with_index'
app/views/commits/_diffs.html.haml:17:in `_app_views_commits__diffs_html_haml___2056977652344232235_34249560'
app/views/compare/show.html.haml:17:in `_app_views_compare_show_html_haml___2483366374759405249_59316480'