Skip to content

ActionView::Template::Error: undefined method `merge_commit?' for nil:NilClass

This was @bbodenmiller first merge request that was not merged. It came from a fork that was deleted, so it's likely this commit got garbage collected.

https://sentry.gitlab.net/gitlab/gitlabcom/issues/739769/

NoMethodError: undefined method `merge_commit?' for nil:NilClass
  batch_loader.rb:124:in `public_send'
    value.public_send(method_name, *args, &block)
  batch_loader.rb:124:in `public_send'
    value.public_send(method_name, *args, &block)
  batch_loader.rb:124:in `block (3 levels) in __replace_with!'
    value.public_send(method_name, *args, &block)
  batch_loader.rb:73:in `method_missing'
    __sync!.public_send(method_name, *args, &block)
  commit_collection.rb:33:in `reject'
    enrich!.commits.reject(&:merge_commit?)
...
(200 additional frame(s) were not displayed)

ActionView::Template::Error: undefined method `merge_commit?' for nil:NilClass

ActionView::Template::Error: undefined method `merge_commit?' for nil:NilClass