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
  • #3165

Closed
Open
Created Mar 07, 2013 by Administrator@rootOwner

Commit compare view

Created by: Danpiel

Error in compare view when compairing commit and master

Using GitLab Version: 4.2.0 Revision: d67117b5

All tests finished with ok

Works through apache proxy and unicorn.

from production.log

..............
  Rendered commits/_text_file.html.haml (14.7ms)
  Rendered commits/_text_file.html.haml (226.5ms)
  Rendered commits/_text_file.html.haml (19.5ms)
  Rendered compare/show.html.haml within layouts/project_resource (15158.5ms)
Completed 500 Internal Server Error in 22904ms

ActionView::Template::Error (undefined method `lines' for nil:NilClass):
    15: .files
    16:   - unless @suppress_diff
    17:     - diffs.each_with_index do |diff, i|
    18:       - next if diff.diff.empty?
    19:       - file = (@commit.tree / diff.new_path)
    20:       - file = (@commit.prev_commit.tree / diff.old_path) unless file
    21:       - next unless file
  app/views/commits/_diffs.html.haml:18:in `block in _app_views_commits__diffs_html_haml___2056977652344232235_34249560'
  app/views/commits/_diffs.html.haml:17:in `each'
  app/views/commits/_diffs.html.haml:17:in `each_with_index'
  app/views/commits/_diffs.html.haml:17:in `_app_views_commits__diffs_html_haml___2056977652344232235_34249560'
  app/views/compare/show.html.haml:17:in `_app_views_compare_show_html_haml___2483366374759405249_59316480'
Assignee
Assign to
Time tracking