@@ -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 = [ |
|
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