ericpaulbishop / redmine_git_hosting

A ChiliProject/Redmine plugin which makes configuring your own git hosting easy.
186 stars 37 forks source link

Redmine 2.0 support? #161

Open krische opened 12 years ago

krische commented 12 years ago

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?

stefanotravelli commented 12 years ago

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.

MichaelKling commented 12 years ago

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 commented 12 years ago

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.