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

Closed
Open
Created Aug 22, 2012 by Administrator@rootOwner

protected_branches 500 error

Created by: pdtpatrick

On one of my projects, getting to protected branches causes a server errror. Here's the production.log output:

Started GET "/liberty/protected_branches" for 127.0.0.1 at 2012-08-22 14:50:28 -0700 Processing by ProtectedBranchesController#index as HTML Parameters: {"project_id"=>"liberty"} Rendered commits/_head.html.haml (5.2ms) Rendered repositories/_branches_head.html.haml (7.5ms) Rendered protected_branches/index.html.haml within layouts/project (23.3ms) Completed 500 Internal Server Error in 169ms

ActionView::Template::Error (undefined method id' for nil:NilClass): 39: - if branch.name == @project.root_ref 40: %span.label default 41: %td 42: = link_to project_commits_path(@project, branch.commit.id) do 43: = truncate branch.commit.id.to_s, :length => 10 44: = time_ago_in_words(branch.commit.committed_date) 45: ago app/views/protected_branches/index.html.haml:42:inblock in _app_views_protected_branches_index_html_haml__153321439897475274_49397600' app/views/protected_branches/index.html.haml:34:in each' app/views/protected_branches/index.html.haml:34:in_app_views_protected_branches_index_html_haml__153321439897475274_49397600'

Assignee
Assign to
Time tracking