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?

&& exitat the end, but after that, what do you hope to do better? – Gilles Oct 12 '11 at 23:29&& exit? Wouldn't it keep the SSH session open? – Nic Oct 14 '11 at 18:30