# HG changeset patch # User Alessio Caiazza # Date 1297117323 -3600 # Mon Feb 07 23:22:03 2011 +0100 # Node ID 4fde57dbd2e65ef600660dba15942af8a680a858 # Parent a40a6791acff70b7089e797b0e8baa7df3ffa202 refs bug #1 - hg execution fails on Windows empty helper has been removed diff --git a/app/controllers/bitbucket_hook_controller.rb b/app/controllers/bitbucket_hook_controller.rb --- a/app/controllers/bitbucket_hook_controller.rb +++ b/app/controllers/bitbucket_hook_controller.rb @@ -18,9 +18,8 @@ raise TypeError, "Project '#{identifier}' has no repository" if repository.nil? raise TypeError, "Repository for project '#{identifier}' is not a Mercurial repository" unless repository.is_a?(Repository::Mercurial) - # Get updates from the Github repository - #command = "cd '#{repository.url}' && cd .. && git pull --rebase" - command = "cd '#{repository.url}' && hg pull" + # Get updates from the bitbucket repository + command = "cd \"#{repository.url}\" && hg pull" exec(command) # Fetch the new changesets into Redmine diff --git a/app/helpers/git_hook_helper.rb b/app/helpers/git_hook_helper.rb deleted file mode 100644 --- a/app/helpers/git_hook_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module GitHookHelper -end diff --git a/init.rb b/init.rb --- a/init.rb +++ b/init.rb @@ -2,7 +2,7 @@ Redmine::Plugin.register :redmine_bitbucket_hook do name 'Redmine Bitbucket Hook plugin' - author 'Alessio Caiazza, Jakob Skjerning' - description 'This plugin allows your Redmine installation to receive Bitbucket post-receive notifications' - version '0.1.1' + author 'Alessio Caiazza' + description 'This plugin allows your Redmine installation to receive Bitbucket post-receive notifications. Based on github work by Jakob Skjerning.' + version '0.1.2' end