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

Closed
Open
Created Feb 26, 2014 by Administrator@rootOwner

Rugged Reference 'refs/heads/master' not found

Created by: brodock

This seems to happen when the repository doesn't have a master branch. It should give me a more human readable error and not just fail with a 500 message.

What to expect: it should respect .git/HEAD and consider that one as the "master".

Doing a application check also crashes the rake task with a similar exception

Started GET "/groupx/repoy/edit" for 127.0.0.1 at 2014-02-26 17:41:43 -0300
Processing by ProjectsController#edit as HTML
 Parameters: {"id"=>"groupx/repoy"}
Completed 500 Internal Server Error in 25ms

Rugged::ReferenceError (Reference 'refs/heads/master' not found):
 app/models/repository.rb:8:in `new'
 app/models/repository.rb:8:in `initialize'
 app/models/project.rb:177:in `new'
 app/models/project.rb:177:in `repository'
 app/controllers/application_controller.rb:97:in `repository'
 app/controllers/application_controller.rb:57:in `set_current_user_for_thread'

Just some more info: the repository does have a .git/HEAD pointing to a existing branch to be considered the "master"

ref: refs/heads/2012-master
Assignee
Assign to
Time tracking