@@ -337,7 +337,10 module Redmine | |||||
337 |
|
337 | |||
338 | def scm_cmd(*args, &block) |
|
338 | def scm_cmd(*args, &block) | |
339 | repo_path = root_url || url |
|
339 | repo_path = root_url || url | |
340 |
full_args = [GIT_BIN, '--git-dir', repo_path |
|
340 | full_args = [GIT_BIN, '--git-dir', repo_path] | |
|
341 | if self.class.client_version_above?([1, 7, 2]) | |||
|
342 | full_args << '-c' << 'core.quotepath=false' | |||
|
343 | end | |||
341 | full_args += args |
|
344 | full_args += args | |
342 | ret = shellout(full_args.map { |e| shell_quote e.to_s }.join(' '), &block) |
|
345 | ret = shellout(full_args.map { |e| shell_quote e.to_s }.join(' '), &block) | |
343 | if $? && $?.exitstatus != 0 |
|
346 | if $? && $?.exitstatus != 0 |
General Comments 0
You need to be logged in to leave comments.
Login now