Best / simple integration Redmine vs Git
Added by Maxim Krušina almost 9 years ago
Hi, plz we're running latest Redmine + Git + Gitlab on the same server.
Long time ago, we had integrtion between Git and Redmine and I would like to make it work again.
I would like to see commits vs tickets information in redmine.
Coz it's on same server, we can use filesystem withou need to use htts/ssh.
Plz any link to some manual/integration guide?
I guest there should be some cron or hook to run some scripts in Redmine after changes at the git repos...
Thanx a lot for help!
Replies (1)
RE: Best / simple integration Redmine vs Git - Added by Ben Blanco over 8 years ago
Hi Maxim,
If the Git repos are already on your server, you should be able to add them via redmine's UI, as long as the system user
you're running redmine as, has access to the \path\to\your\repos.git
The following part of the documentation explains the need for redmine application to have access to local repos:
$ sudo mkdir -p /var/redmine/git_repositories $ sudo chown rails:rails /var/redmine/git_repositories $ cd /var/redmine/git_repositories
Note the second line: it changes the ownership of the newly created directory to the user rails and the group rails. Of course, you have to replace it according to your server settings (it can be www-data, apache or when you are having a very bad sysadmin: root). Keep in mind that this user needs to have the (local-)permissions to run the git command.
cf. https://redmine.org/projects/redmine/wiki/RedmineRepositories#Git-repository
Hope this helps!