Skip to content

Instantly share code, notes, and snippets.

@zstumgoren
Created April 1, 2015 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zstumgoren/ce9e3791c211c7aae677 to your computer and use it in GitHub Desktop.
Save zstumgoren/ce9e3791c211c7aae677 to your computer and use it in GitHub Desktop.
# Made a series of db updates to repositories table so that values would match those of newly created repos
UPDATE `redmine_production`.`repositories` SET `root_url`='repositories/ap-deploy.git', `type`='Repository::Xitolite' WHERE `id`='92';
UPDATE `redmine_production`.`repositories` SET `url`='repositories/ap-deploy.git' WHERE `id`='92';
UPDATE `redmine_production`.`repositories` SET `identifier`='' WHERE `id`='92';
UPDATE `redmine_production`.`repositories` SET `path_encoding`='' WHERE `id`='92';
UPDATE `redmine_production`.`repositories` SET `extra_info`= null WHERE `id`='92';
## After above changes, still getting the below error.
Started GET "/projects/ap-deploy" for 192.168.10.1 at 2015-04-01 13:52:04 -0400
Processing by ProjectsController#show as HTML
Parameters: {"id"=>"ap-deploy"}
Current user: stumgoren (id=25)
Rendered plugins/redmine_git_hosting/app/views/common/_git_urls.html.erb (13.7ms)
Rendered plugins/redmine_git_hosting/app/views/projects/_git_urls.html.haml (19.8ms)
Rendered projects/show.html.erb within layouts/base (24.1ms)
Completed 500 Internal Server Error in 52.3ms
ActionView::Template::Error (undefined method `[]' for nil:NilClass):
1: <% repositories = Array.wrap(repository) unless repositories %>
2: <% if repositories.map(&:available_urls).flatten.reject { |m| m.blank? }.any? %>
3: <% repositories.sort_by { |r| r.is_default ? 0 : 1 }.each do |repository| %>
4: <% # Skip repository without URLs %>
5: <% next if repository.available_urls.empty? %>
lib/redmine/hook.rb:111:in `block in render_on'
lib/redmine/hook.rb:61:in `block (2 levels) in call_hook'
lib/redmine/hook.rb:61:in `each'
lib/redmine/hook.rb:61:in `block in call_hook'
lib/redmine/hook.rb:58:in `tap'
lib/redmine/hook.rb:58:in `call_hook'
lib/redmine/hook.rb:158:in `call_hook'
app/views/projects/show.html.erb:63:in `_app_views_projects_show_html_erb__2169388374270918909_69940695120120'
app/controllers/projects_controller.rb:163:in `show'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment