Skip to content

"internal Error" when trying to edit a newly created repo. #329

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jamasi opened this issue Jan 21, 2015 · 3 comments
Closed

"internal Error" when trying to edit a newly created repo. #329

jamasi opened this issue Jan 21, 2015 · 3 comments
Assignees
Labels
Milestone

Comments

@jamasi
Copy link

jamasi commented Jan 21, 2015

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 [email protected]_record? && [email protected]? %>
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'
n-rodriguez pushed a commit that referenced this issue Jan 21, 2015
@n-rodriguez
Copy link
Contributor

Can you do a git pull from the plugin directory and retry?

@jamasi
Copy link
Author

jamasi commented Jan 21, 2015

The internal error is gone now, but the repo is not initialised with any readme file, but that looks like another issue.

@jamasi jamasi closed this as completed Jan 21, 2015
@n-rodriguez n-rodriguez self-assigned this Jan 21, 2015
@n-rodriguez n-rodriguez added this to the v0.7.10 milestone Jan 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants