ActionView::Template::Error: undefined local variable or method `branch' for #<#<Class:0x00007efc799381f0>:0x00007efc7996c630>

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

NameError: undefined local variable or method `branch' for #<#<Class:0x00007efc799381f0>:0x00007efc7996c630>
Did you mean?  @branches
  grape-path-helpers/named_route_matcher.rb:7:in `method_missing'
    return super unless method_id.to_s =~ /_path$/
  /opt/gitlab/embedded/service/gitlab-rails/ee/app/views/projects/branches/_diverged_from_upstream.html.haml:1:in `_ee_app_views_projects_branches__diverged_from_upstream_html_haml___146917684848040068_69811444338280'
    - if @project.mirror_ever_updated_successfully? && @repository.diverged_from_upstream?(branch.name)
  action_view/template.rb:157:in `block in render'
    view.send(method_name, locals, buffer, &block)
  active_support/notifications.rb:168:in `instrument'
    yield payload if block_given?
  action_view/template.rb:352:in `instrument_render_template'
    ActiveSupport::Notifications.instrument("!render_template.action_view".freeze, instrument_payload, &block)
...
(193 additional frame(s) were not displayed)

ActionView::Template::Error: undefined local variable or method `branch' for #<#<Class:0x00007efc799381f0>:0x00007efc7996c630>
Did you mean?  @branches

ActionView::Template::Error: undefined local variable or method `branch' for #<#<Class:0x00007efc799381f0>:0x00007efc7996c630>
Did you mean?  @branches
Assignee Loading
Time tracking Loading