##// END OF EJS Templates
scm: bazaar: use self.class.sq_bin for command name at adpter scm_cmd() (#8825)....
Toshi MARUYAMA -
r6163:4dea2870b7d0
parent child
Show More
@@ -278,9 +278,12 module Redmine
278 end
278 end
279
279
280 def scm_cmd(*args, &block)
280 def scm_cmd(*args, &block)
281 full_args = [BZR_BIN]
281 full_args = []
282 full_args += args
282 full_args += args
283 ret = shellout(full_args.map { |e| shell_quote e.to_s }.join(' '), &block)
283 ret = shellout(
284 self.class.sq_bin + ' ' + full_args.map { |e| shell_quote e.to_s }.join(' '),
285 &block
286 )
284 if $? && $?.exitstatus != 0
287 if $? && $?.exitstatus != 0
285 raise ScmCommandAborted, "bzr exited with non-zero status: #{$?.exitstatus}"
288 raise ScmCommandAborted, "bzr exited with non-zero status: #{$?.exitstatus}"
286 end
289 end
General Comments 0
You need to be logged in to leave comments. Login now