redmine_git_hosting icon indicating copy to clipboard operation
redmine_git_hosting copied to clipboard

Redmine 2.0 support?

Open krische opened this issue 12 years ago • 3 comments

Does this plugin work under Redmine 2.0?

I tried installing it, but when trying to rake, I was getting errors about the RAILS_ROOT constant being uninitialized. So I edited the init.rb file to just hardcode my path instead of using RAILS_ROOT.

However, after doing that, I receive a "cannot load such file -- dispatcher" error.

Any ideas?

krische avatar Jun 26 '12 04:06 krische

RAILS_ROOT can be replaced with Rails.root however the result is always "cannot load such file --dispatcher".

Following this http://www.redmine.org/boards/3/topics/30423 I was able to fix this error too, however then other troubles arise.

A proper porting of the plugin to Rails3/Redmine2 would be needed.

stefanotravelli avatar Jul 26 '12 13:07 stefanotravelli

This work seems to work on it: https://github.com/Liberty-Concepts/redmine_git_hosting/commits/master

Don't know yet how good it is working, still researching possibilities for our new software frame.

MichaelKling avatar Aug 08 '12 06:08 MichaelKling

ericpaulbishop merged it here in a new branch.

As i said i wanted to test it and its still not fully working. I had the following problems:

  1. Creating a new repository in the redmine failed - it only works if you choose the option to create a repository automatically on project creation
  2. Redmine didnt push the gitolite settings - in redmine itself key generation and everything was working but nothing in gitolite
  3. In the shell scripts (git to redmine user, redmine user to git, etc..) are hardcoded usernames for the gitolite user. This leads to issues (especially because there is the option in the plugin configuration to change the username - but is not taken into concideration)
  4. It overwrites the "git repository" in redmine, it is not possible to have external not self hosted git repositories and own repositories in the same project.

There are more issues - i will take a closer look tomorrow. Also it is possible that i did things wrong and therefore some of the issues are my fault.

MichaelKling avatar Aug 15 '12 17:08 MichaelKling