I have gitolite on a Centos 5.5 box - when a repository is updated, I need to send a command to my bug tracking appliance to get the new commands. Right now, I have the following command working:
ssh bugserver -f 'cd /etc/repos/gitrepo && git pull origin prod && exit'
This seems a little dirty, though. Is there a better way to execute this sync?