kubitron/redmine_git_hosting — Issue #9: Automatic creation/setup of mirror repositories
Author: phindmarsh
Created: 2012-02-03 03:43:37+00:00
State: open

We use this version of redmine_git_hosting for our small development shop. We also have a bitbucket.org account that we sync a mirror of all our repositories to (in case something goes really wrong at our end).

At present when we create a new project we also log into bitbucket and make a new project then configure the mirror to sync to it.

What I propose is one of two things:

* Create some common API connectors for popular third party git hosting services that can be hit when a new project is created and setup the remote repository and configure the mirror locally.
* Provide some sort of 'post_project_created' hook that calls a local script (similar idea to a post-receive hook in git), so the logic for creating the mirror repositories is left to end users like myself :)

Bitbucket has a good API for checking/creating repositories, and if this feature was to be implemented it would be peace of mind backups that we don't have to actively setup/monitor.

Hope this makes sense, I'm not a rails guy otherwise I'd attempt this myself. I made a rudimentary version in bash that was called via a post-receive git hook, but the problem was it would hold up every commit while it communicated with bitbucket. The mirrors functionality is so much nicer, all it needs now is auto-setup!

Thanks for your time on this plugin, it is certainly very very useful!