]> source.dussan.org Git - redmine.git/commitdiff
scm: add new method "shell_quote_command" at abstract adapter (#8825).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 15 Jul 2011 11:43:53 +0000 (11:43 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 15 Jul 2011 11:43:53 +0000 (11:43 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6272 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/abstract_adapter.rb

index 29b401a81b61c0ad99cb79f50dc0825dcbb7170f..9228dbe2d3bf29cc000daed20e5d3ab891c3d475 100644 (file)
@@ -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