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

Closed
Open
Created Mar 31, 2014 by Administrator@rootOwner

Unable to create new issue when no code has been pushed

Created by: rwky

After creating a new project clicking the new issue issue button throws a 500 error when no code has been pushed yet.

This is using gitlab 6.7.2 and tested on two separate installs.

Error log:

Started GET "/root/test/issues/new?issue%5Bassignee_id%5D=&issue%5Bmilestone_id%5D=" for 127.0.0.1 at 2014-03-31 16:05:17 +0000
Processing by Projects::IssuesController#new as HTML
  Parameters: {"issue"=>{"assignee_id"=>"", "milestone_id"=>""}, "project_id"=>"root/test"}
  Rendered projects/issues/_form.html.haml (7.3ms)
  Rendered projects/issues/new.html.haml within layouts/projects (8.8ms)
Completed 500 Internal Server Error in 164ms

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___3565479619915409128_69854294029220'
  app/views/projects/issues/new.html.haml:1:in `_app_views_projects_issues_new_html_haml__1238687067725176248_69854293962440'
  app/controllers/projects/issues_controller.rb:46:in `new'
  app/controllers/application_controller.rb:58:in `set_current_user_for_thread
Assignee
Assign to
Time tracking