http 500 accessing project
Created by: 7tupel
When I access a project i'm getting a 500 error. It does not matter if the project is public or not, neither if i am the owner or not. The error only happens if the repository of the project is not empty. Accessing a newly created project with an empty repo everything works well until i put something in it. Access via git push/pull works fine with no errors. Same goes for accessing the projects snippets page ore anything else that is not using to the repository.
Here the entry from my log:
ActionView::Template::Error (undefined method `sha' for nil:NilClass):
39: = link_to project_compare_index_path(@project, from: @repository.root_ref, to: @ref || @repository.root_ref), class: 'btn btn-block' do
40: Compare code
41:
42: - if @repository.readme
43: - readme = @repository.readme
44: = link_to project_blob_path(@project, tree_join(@repository.root_ref, readme.name)), class: 'btn btn-block' do
45: = readme.name
app/models/repository.rb:176:in `tree'
app/models/repository.rb:166:in `block in readme'
app/models/repository.rb:165:in `readme'
app/views/projects/show.html.haml:42:in `_app_views_projects_show_html_haml__2463620507634268995_70166266461320'
app/controllers/projects_controller.rb:73:in `block (2 levels) in show'
app/controllers/projects_controller.rb:65:in `show'
app/controllers/application_controller.rb:57:in `set_current_user_for_thread'
We are using gitlab version 6.6.5 newly installed yesterday from source following the official instructions. System is a clean Debian Wheezy, nothing special. Ruby version is 2.1.1