Gitosis Plugin on Redmine 1.4

2012-07-31 18:49:14 by Saz

At work, we're using Redmine and the redmine_gitosis plugin for managing git repositories and access to them.

After upgrading to Redmine 1.4 some plugins stopped working.

I've fixed the redmine_gitosis plugin to work with Redmine 1.4 again. Fixing the plugin was easier, than switching to redmine_git_hosting. Although I'm not sure, how good redmine_git_hosting is working with 1.4, it's clearly better maintained. If you're setting up a new system, use redmine_git_hosting.

Some of the error messages I've seen and fixed:

NameError (uninitialized constant GitosisPublicKeysController::ARCondition):
ActionView::TemplateError (undefined method `errors' for :gitosis_public_key:Symbol) on line #3 of vendor/plugins/redmine_gitosis/app/views/gitosis_public_keys/edit.html.erb:
1: <h2><%= link_to l(:label_public_keys), public_keys_path %> &#187; <%= h @gitosis_public_key %></h2>
2:
3: <%= error_messages_for :gitosis_public_key %>
4:
5: <% form_for :public_key, @gitosis_public_key, :url => { :action => "update" }, :html => { :method => :put},
6:                           :builder => TabularFormBuilder,
ActionView::TemplateError (uninitialized constant ActionView::Base::CompiledTemplates::TabularFormBuilder) on line #12 of vendor/plugins/redmine_gitosis/app/views/gitosis_public_keys/new.html.erb:
9: <% end %>
10:
11: <% form_for :public_key, @gitosis_public_key, :url => { :action => "create" },
12:                           :builder => TabularFormBuilder,
13:                           :lang => current_language do |f| %>
14:
15:     <%= render :partial => 'form', :locals => { :f => f } %>

Get the fixed version on Github


Comments

Fork me on GitHub