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