From ecc042dce1c10e3496f50abe07923e6df3a1f799 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 15 Jul 2011 11:43:53 +0000 Subject: [PATCH] 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 --- lib/redmine/scm/adapters/abstract_adapter.rb | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.39.5