4fde57dbd2e6 — Alessio Caiazza 13 years ago
refs bug #1 - hg execution fails on Windows
empty helper has been removed
3 files changed, 5 insertions(+), 8 deletions(-)

M app/controllers/bitbucket_hook_controller.rb
R app/helpers/git_hook_helper.rb => 
M init.rb
M app/controllers/bitbucket_hook_controller.rb +2 -3
@@ 18,9 18,8 @@ class BitbucketHookController < Applicat
     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

          
R app/helpers/git_hook_helper.rb =>  +0 -2
@@ 1,2 0,0 @@ 
-module GitHookHelper
-end

          
M init.rb +3 -3
@@ 2,7 2,7 @@ require 'redmine'
 
 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