David Conde's Blog

6Jun/100

Simplify Git Repository Management Using Redmine

I have been using both Git and Redmine for a while now as a replacement for SVN and Trac. I'm very happy with the move but Git repository management using gitosis can be a bit of a pain having to manage ssh keys and different groups and permissions.

Since I'm using Redmine to manage users for projects already, I decided to have a look at the Redmine Gitosis plugin. This plugin enables users to attach their own public key to their account in Redmine. The plugin then uses the users project membership permissions and associated keys to manage the gitosis configuration for you. It's early days yet but it seems to be working well so far and makes it very simple to spawn up new projects and assign developers' commit rights to different projects without having to go near any config files.

Note: There is one small gotcha to watch out for regarding ssh keys. If you add a key via Redmine and an identical key already existed but under a different file name that user will be locked out of logging in via ssh until you remove one of the keys form the .ssh/authorized_keys of the user that gitosis is running under.

Filed under: Git, Redmine Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

No trackbacks yet.