abstract_adapter.patch

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

Download (734 Bytes)

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(/'/, "'\"'\"'") + "'"