summaryrefslogtreecommitdiffstats
path: root/lib/redmine/scm/adapters/abstract_adapter.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-07-15 11:43:53 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-07-15 11:43:53 +0000
commitecc042dce1c10e3496f50abe07923e6df3a1f799 (patch)
tree9a002b9aba97351ace3eb86f262ff1af02212550 /lib/redmine/scm/adapters/abstract_adapter.rb
parent98b29b445dccfaf1ed9fa6eefff8bc8c9dc43e85 (diff)
downloadredmine-ecc042dce1c10e3496f50abe07923e6df3a1f799.tar.gz
redmine-ecc042dce1c10e3496f50abe07923e6df3a1f799.zip
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
Diffstat (limited to 'lib/redmine/scm/adapters/abstract_adapter.rb')
-rw-r--r--lib/redmine/scm/adapters/abstract_adapter.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/redmine/scm/adapters/abstract_adapter.rb b/lib/redmine/scm/adapters/abstract_adapter.rb
index 29b401a81..9228dbe2d 100644
--- a/lib/redmine/scm/adapters/abstract_adapter.rb
+++ b/lib/redmine/scm/adapters/abstract_adapter.rb
@@ -33,6 +33,14 @@ module Redmine
""
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
# Eg: [1, 5, 0] or [] if unknown
def client_version