Getting integrated with redmine
Not as smooth as it should be
I have to figure out how to get the repository to show up correctly in here. I think it will require some scripting magic on the server to keep multiple repositories up to date and the redmine database stuff up to date as well...
Found a possible solution from http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way
Stu on June 18, 2008 06:05 AM
I run redmine with git no problem, I have a hook that updates a local checkout. Redmines git adapter doesnt work with a bare .git repo it needs a proper checkout. on post-update i just do a git pull, which since its a local repo doesnt use any more space since it maps to the master .git repo.
in my post-update before the update server info I call /bin/sh /home/git/repositories/project.git/hooks/update_local_repo.sh
and that script looks like;
!/bin/shcd /home/git/checkout/project || exit unset GIT_DIR git pull /home/git/repositories/project.git/ master
I also have a cron job that updates redmines repositories every 30 minutes rather than each time a user hits the repo and having redmine check for updates (slow). (ruby script/runner “Repository.fetch_changesets” -e production)
Hopefully this will be what I need to use.
Comments