redmine_git_hosting icon indicating copy to clipboard operation
redmine_git_hosting copied to clipboard

Post-receive hook does not support chaining

Open phindmarsh opened this issue 14 years ago • 1 comments

I'm writing a hook to automatically push a mirror of my repository to Bitbucket when committed, however because redmine_git_hosting uses a post-receive hook the only place I can insert my hook is on update.

This works, however it means the bitbucket repository is alway one commit behind the redmine repository.

By default gitolite has 'update hooklets' which allow you to create a folder and place multiple update hooks to be parsed and executed when the update hook is fired.

I propose something similar to be built into this plugin so one have other post-receive hooks to be executed at the correct time. I would love to write this myself, but I have no idea where to start (not knowing my way around rails).

phindmarsh avatar Dec 09 '11 04:12 phindmarsh

Hi, as I had the same problem, I extended the plugin to include this kind of functionality. You can find it in commit a397f16. However, since this repository doesn't seem to be the upstream anymore, I did a pull request on the kubitron/redmine_git_hosting repository.

tomka avatar Oct 12 '12 17:10 tomka