Error 500 on create new issue
Created by: sebheitzmann
I freshly installed Gitlab and everything is ok except that when I create a new issue on a project i've got an 500 error.
Here is what i found in the logs. But I'm not a rails man so it doesn't mean anything for me. Any Idea ?
Thanks.
Started GET "/2le/psi-rector/issues/new?issue%5Bassignee_id%5D=&issue%5Bmilestone_id%5D=" for 90.39.10.102 at 2014-04-06 21:42:00 +0200
Processing by Projects::IssuesController#new as HTML
Parameters: {"issue"=>{"assignee_id"=>"", "milestone_id"=>""}, "project_id"=>"2le/psi-rector"}
Rendered projects/issues/_form.html.haml (2.8ms)
Rendered projects/issues/new.html.haml within layouts/projects (3.2ms)
Completed 500 Internal Server Error in 50ms
ActionView::Template::Error (undefined method `sha' for nil:NilClass):
1: %div.issue-form-holder
2: %h3.page-title= @issue.new_record? ? "New Issue" : "Edit Issue ##{@issue.iid}"
3: %hr
4: - if @repository.contribution_guide && [email protected]?
5: - contribution_guide_url = project_blob_path(@project, tree_join(@repository.root_ref, @repository.contribution_guide.name))
6: .alert.alert-info.col-sm-10.col-sm-offset-2
7: ="Please review the <strong>#{link_to "guidelines for contribution", contribution_guide_url}</strong> to this repository.".html_safe
app/models/repository.rb:183:in `tree'
app/models/repository.rb:173:in `block in contribution_guide'
app/models/repository.rb:172:in `contribution_guide'
app/views/projects/issues/_form.html.haml:4:in `_app_views_projects_issues__form_html_haml___1857850385628120102_69978799607140'
app/views/projects/issues/new.html.haml:1:in `_app_views_projects_issues_new_html_haml__706866863557498396_69978799540020'
app/controllers/projects/issues_controller.rb:46:in `new'
app/controllers/application_controller.rb:58:in `set_current_user_for_thread'