Errors in creations_controller.rb when attempting to create Merge Requests
Steps to reproduce
- Create an issue
- Click
Create merge request
button - It fails
nil
compare_commits
Error 500 when creating merge requests with https://sentry.gitlap.com/gitlab/gitlabcom/issues/37315/
NoMethodError: undefined method `reverse' for nil:NilClass
app/controllers/projects/merge_requests/creations_controller.rb:112:in `define_new_vars'
@commits = @merge_request.compare_commits.reverse
app/controllers/ee/projects/merge_requests/creations_controller.rb:10:in `define_new_vars'
super
app/controllers/projects/merge_requests/creations_controller.rb:27:in `create'
define_new_vars
lib/gitlab/i18n.rb:42:in `with_locale'
yield
lib/gitlab/i18n.rb:48:in `with_user_locale'
with_locale(user&.preferred_language, &block)
...
(115 additional frame(s) were not displayed)
Edited by James EJ