fix_4494_mercurial_on_jruby.diff

Gregor Schmidt, 2010-04-20 12:02

Download (627 Bytes)

View differences:

lib/redmine/scm/adapters/abstract_adapter.rb
190 190
          begin
191 191
            IO.popen(cmd, "r+") do |io|
192 192
              io.close_write
193
              block.call(io) if block_given?
193
              if block_given?
194
                block.call(io)
195
                while(io.gets); end
196
              end
194 197
            end
195 198
          rescue Errno::ENOENT => e
196 199
            msg = strip_credential(e.message)