diff options
-rw-r--r-- | lib/redmine/scm/adapters/abstract_adapter.rb | 8 |
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 |