[v7.13] ActionView::Template::Error (undefined method `sha' for nil:NilClass)
Closed
[v7.13] ActionView::Template::Error (undefined method `sha' for nil:NilClass)
Created by: elboletaire
After upgrading gitlab to 7.13 I started getting 500 errors on some of my projects. If I run the gitlab tests it says everything is ok.
Here's what the production.log
states about my error:
Completed 500 Internal Server Error in 992ms (ActiveRecord: 330.5ms)
ActionView::Template::Error (undefined method `sha' for nil:NilClass):
7: = link_to namespace_project_edit_blob_path(@project.namespace, @project, tree_join(@repository.root_ref, readme.name)), class: 'light' do
8: %i.fa.fa-pencil
9: .wiki
10: = cache(readme_cache_key) do
11: = render_readme(readme)
12: - else
13: %h3.page-title
app/helpers/projects_helper.rb:277:in `readme_cache_key'
app/views/projects/_readme.html.haml:10:in `_app_views_projects__readme_html_haml___2518100473481433653_69882723290400'
app/views/projects/show.html.haml:47:in `_app_views_projects_show_html_haml___991411998595127387_69882660500980'
app/controllers/projects_controller.rb:85:in `block (2 levels) in show'
app/controllers/projects_controller.rb:79:in `show'
Please register or sign in to reply