scm: add new method "shell_quote_command" at abstract adapter (#8825).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6272 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-07-15 11:43:53 +00:00
parent 98b29b445d
commit ecc042dce1
1 changed files with 8 additions and 0 deletions

View File

@ -33,6 +33,14 @@ module Redmine
"" ""
end end
def shell_quote_command
if Redmine::Platform.mswin? && RUBY_PLATFORM == 'java'
client_command
else
shell_quote(client_command)
end
end
# Returns the version of the scm client # Returns the version of the scm client
# Eg: [1, 5, 0] or [] if unknown # Eg: [1, 5, 0] or [] if unknown
def client_version def client_version