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:in
block 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'