500 on dashboard/merge_requests
Created by: matthee
Hi!
I've upgraded from 5.0 to 5.1 and experiencing 500 errors on my personal merge-request page (http://some.gitlab.host/dashboard/merge_requests)
To me it seems like an issue with grit
Theres the section from the production.log
ActionView::Template::Error (undefined method `id' for nil:NilClass):
18: - if merge_request.notes.any?
19: %span
20: %i.icon-comments
21: = merge_request.mr_and_commit_notes.count
22: - if merge_request.milestone_id?
23: %span
24: %i.icon-time
app/models/commit.rb:24:in `id'
lib/gitlab/git/commit.rb:107:in `init_from_grit'
lib/gitlab/git/commit.rb:21:in `initialize'
app/models/merge_request.rb:213:in `new'
app/models/merge_request.rb:213:in `block in load_commits'
app/models/merge_request.rb:213:in `map'
app/models/merge_request.rb:213:in `load_commits'
app/models/merge_request.rb:145:in `commits'
app/models/merge_request.rb:184:in `mr_and_commit_notes'
app/views/merge_requests/_merge_request.html.haml:21:in `_app_views_merge_requests__merge_request_html_haml__4146417924677815081_62818040'
app/views/shared/_merge_requests.html.haml:9:in `block (2 levels) in _app_views_shared__merge_requests_html_haml___1659895829437535557_40253700'
app/views/shared/_merge_requests.html.haml:8:in `each'
app/views/shared/_merge_requests.html.haml:8:in `block in _app_views_shared__merge_requests_html_haml___1659895829437535557_40253700'
app/views/shared/_merge_requests.html.haml:2:in `each'
app/views/shared/_merge_requests.html.haml:2:in `_app_views_shared__merge_requests_html_haml___1659895829437535557_40253700'
app/views/dashboard/merge_requests.html.haml:11:in `_app_views_dashboard_merge_requests_html_haml__1969067184043717998_38822540'
any thoughts?