gitolite post commit hook to update redmine's repository
Posted
by
eliocs
on Server Fault
See other posts from Server Fault
or by eliocs
Published on 2011-01-30T13:45:26Z
Indexed on
2011/01/30
15:27 UTC
Read the original article
Hit count: 388
Hello,
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?
Thanks in advance.
p.s: don't have enough reputation to create de gitolite tag.
© Server Fault or respective owner