Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #7827

Closed
Open
Created Sep 23, 2014 by Administrator@rootOwner

undefined local variable or method `diff'

Created by: miramir

gitlab. branch 7-3-stable

if commit contains change file mode, i see:

Completed 500 Internal Server Error in 140ms

ActionView::Template::Error (undefined local variable or method `diff' for #<#<Class:0x000000069f19c8>:0x000000069eb208>):
    12:     - else
    13:       %span= diff_file.new_path
    14:       - if diff_file.mode_changed?
    15:         %span.file-mode= "#{diff.a_mode} → #{diff.b_mode}"
    16: 
    17:       .diff-btn-group
    18:         - unless params[:view] == 'parallel'
  app/views/projects/diffs/_file.html.haml:15:in `_app_views_projects_diffs__file_html_haml___2988957381403240991_52544900'
  app/views/projects/diffs/_diffs.html.haml:20:in `block in _app_views_projects_diffs__diffs_html_haml___1957141445595236262_50869140'
  app/views/projects/diffs/_diffs.html.haml:19:in `each'
  app/views/projects/diffs/_diffs.html.haml:19:in `each_with_index'
  app/views/projects/diffs/_diffs.html.haml:19:in `_app_views_projects_diffs__diffs_html_haml___1957141445595236262_50869140'
  app/views/projects/compare/show.html.haml:21:in `_app_views_projects_compare_show_html_haml___4588362990256595728_55528080'
Assignee
Assign to
Time tracking