Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have redmine installed with around 12 projects and most of them are websites/web apps. Their code is maintained on the same server using redmine-gitolite-plugin by eric ( Till now everything is fine.

As most of the projects are websites, the current scenario requires me to login to the webserver and do a git pull to fetch the latest repo from the redmine-git server. Where can I write a hook so that each push to the repo is fetched automatically by my webserver?

Though the plugin has a feature for enabling Mirror repositories I am unable to figure out how to specify my webserver as a mirror. However I created sample repos at github and gitorious and the mirror config works fine with those sites.

I am running redmine 1.2.1 on debian with mysql and redmine-gitolite-plugin

share|improve this question
Ofcourse, I tried editing the post receive hook in one of the project's repository but it is already populated with some ruby code. Probably that helps in showing the repo changes in the view of the plugin. So could not figure out a way to have owr own hooks alongside the existing hook. – Medhamsh Jan 3 '13 at 20:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.