-
Notifications
You must be signed in to change notification settings - Fork 119
Closed
Description
I created a new repository and then clicked the edit link and then I got this Internal Error:
From production.log:
ActionView::Template::Error (undefined method `empty?' for nil:NilClass):
149:
150: <p>
151: <%= label_tag "", l(:label_repository_default_branch) %>
152: <% if !@repository.new_record? && !@repository.branches.empty? %>
153: <%= select_tag "extra[default_branch]", options_for_select(@repository.branches.collect{ |b| [b.to_s, b.to_s] }, :selected => @repository.branches.find{ |b| b.is_default}.to_s) %>
154: <% else %>
155: <span class="label label-info"><%= @repository.extra[:default_branch] %></span>
app/helpers/application_helper.rb:1056:in `labelled_form_for'
The relevant part from git_hosting.log:
2015-01-21 04:23:34 +0100 INFO [GitHosting] User 'jamasi' created a new repository 'foobar3'
2015-01-21 04:23:34 +0100 INFO [GitWorker] Using Gitolite configuration file : 'gitolite.conf'
2015-01-21 04:23:34 +0100 INFO [GitWorker] add_repository : repository 'foobar3' does not exist in Gitolite, create it ...
2015-01-21 04:23:34 +0100 INFO [GitWorker] add_repository : commiting to Gitolite...
2015-01-21 04:23:35 +0100 INFO [GitWorker] add_repository : let Gitolite create empty repository 'repositories/foobar3.git'
2015-01-21 04:23:35 +0100 INFO [GitWorker] add_repository : pushing to Gitolite...
2015-01-21 04:23:38 +0100 INFO [GitWorker] add_repository : done !
2015-01-21 04:23:38 +0100 INFO [GitWorker] Create README file for repository 'foobar3'
2015-01-21 04:23:39 +0100 ERROR [GitWorker] Error while creating README file for repository 'foobar3'
2015-01-21 04:23:39 +0100 ERROR [GitWorker] Command output : ''
2015-01-21 04:23:39 +0100 WARN [GitCache] Cache is disabled : 'foobar3'