# HG changeset patch # User Jakob Skjerning # Date 1249298066 -7200 # Node ID 7df4ad7db327b614fc561a30bd8b0e37a0d981d6 # Parent 592ccd16c55f701e9cf7e7e2a66fddcff433f0f9 After pulling the changes into the local repository pull them into Redmine as well diff -r 592ccd16c55f701e9cf7e7e2a66fddcff433f0f9 -r 7df4ad7db327b614fc561a30bd8b0e37a0d981d6 app/controllers/github_hook_controller.rb --- a/app/controllers/github_hook_controller.rb Mon Aug 03 12:51:46 2009 +0200 +++ b/app/controllers/github_hook_controller.rb Mon Aug 03 13:14:26 2009 +0200 @@ -19,6 +19,9 @@ command = "cd '#{repository.url}' && cd .. && git pull" exec(command) + # Fetch the new changesets into Redmine + Repository.fetch_changesets + render(:text => 'OK') end diff -r 592ccd16c55f701e9cf7e7e2a66fddcff433f0f9 -r 7df4ad7db327b614fc561a30bd8b0e37a0d981d6 init.rb --- a/init.rb Mon Aug 03 12:51:46 2009 +0200 +++ b/init.rb Mon Aug 03 13:14:26 2009 +0200 @@ -4,5 +4,5 @@ name 'Redmine Github Hook plugin' author 'Jakob Skjerning' description 'This plugin allows your Redmine installation to receive Github post-receive notifications' - version '0.1.0' + version '0.1.1' end