Project

General

Profile

Defect #1804 ยป abstract_adapter.patch

Babar O'Cap, 2008-08-21 15:28

View differences:

C:\Redmine\lib\redmine\scm\adapters\abstract_adapter.rb
138 138
         end
139 139
        
140 140
        def shell_quote(str)
141
          if RUBY_PLATFORM =~ /mswin/
141
          if RUBY_PLATFORM =~ /(:?mswin|mingw)/ || (RUBY_PLATFORM == 'java' && (ENV['OS'] || ENV['os']) =~ /windows/i)
142 142
            '"' + str.gsub(/"/, '\\"') + '"'
143 143
          else
144 144
            "'" + str.gsub(/'/, "'\"'\"'") + "'"
    (1-1/1)