Auto fetching git projects on commit
Added by Og Maciel almost 16 years ago
Hi there,
I installed Redmine last night in a server hosted by Dreamhost. I followed the instructions shown here, using Redmine 0.8 release tarball instead of doing a svn checkout. The installation worked flawlessly and I proceeded to checkout my project as follows:
mkdir $HOME/git_repositories
cd $HOME/git_repositories
git clone --bare git://github.com/omaciel/sansplanet.git
I then added the proper information for my Redmine project's repository and was able to view/browse the source code. I then wanted to have the source code pulled every time someone commits to the github repository and searched here as well as using Google for a solution. Pretty much the results I found required that you change the local (as in the Redmine server) post-commit or post-update hooks and that this should be enough. However, I noticed that the source code was not being updated after making some small changes and pushing it to the repo.
I was wondering if anyone out there has a simple to follow "recipe" I can use to accomplish this?
Thanks in advance,
Og
Replies (2)
RE: Auto fetching git projects on commit - Added by Jeremiah Dabney almost 16 years ago
The link to the instructions to follow for the install goes to the redmine.org login page. I was wondering if you could repost the link that you used for the install instructions.
RE: Auto fetching git projects on commit - Added by Og Maciel almost 16 years ago
My apologies Jeremiah... Must have copied and pasted the wrong url... One of the links is this http://www.redmine.org/boards/2/topics/85 . The other I'll have to dig but it involved modifying the post-commit hook and calling ruby script/runner "Repository.fetch_changesets" -e production
explicitly.
Cheers,
Og