redmine refresh repository on commit

From WebHostingNeeds.com
Jump to: navigation, search

By default, remine fetches commits from repo only when you click "Repository" tab.

To auto refresh, create a hook in your git repo as follows. This is done on your main repo.

vi /home/git/vshare.git/hooks/post-receive

Add


#!/bin/sh

/usr/bin/curl "http://labs.buyscripts.in/sys/fetch_changesets?key=KEY_YOU_GET_FROM_REDMINE"

Make it executable

chmod 755 /home/git/vshare.git/hooks/post-receive


You can generate key in Redmine > Administration > Settings > Repositories

redmine repositories setting.png



redmine