]> source.dussan.org Git - redmine.git/commitdiff
scm: bazaar: use self.class.sq_bin for command name at adpter scm_cmd() (#8825).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 15 Jul 2011 16:33:02 +0000 (16:33 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 15 Jul 2011 16:33:02 +0000 (16:33 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6283 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/bazaar_adapter.rb

index 62e3b256950ae87a4ac1c52d8bc29407849fa209..a4a313577a94defa8599a717ffd1db4d5a275bea 100644 (file)
@@ -278,9 +278,12 @@ module Redmine
         end
 
         def scm_cmd(*args, &block)
-          full_args = [BZR_BIN]
+          full_args = []
           full_args += args
-          ret = shellout(full_args.map { |e| shell_quote e.to_s }.join(' '), &block)
+          ret = shellout(
+                   self.class.sq_bin + ' ' + full_args.map { |e| shell_quote e.to_s }.join(' '),
+                   &block
+                   )
           if $? && $?.exitstatus != 0
             raise ScmCommandAborted, "bzr exited with non-zero status: #{$?.exitstatus}"
           end