I currently have a ubuntu server machine which has gitolite and redmine installed. Redmine accesses repository copies which are updated using a cron task. Having a cron task to pull the updates seems like an overkill is there anyway a gitolite post-commit script could execute a pull as the redmine user. My current update script looks like this:
*/15 * * * * redmine cd /home/redmine/repositories/support && git pull
The post-commit script I guess should be similar, how can I give the gitolite user the privileges to execute the pull as the redmine user?