subversion_skip_unreadable_dirs.patch

Patch against redmine-0.7 branch (r1489) - Sergio Talens-Oliag, 2008-06-04 12:47

Download (911 Bytes)

View differences:

lib/redmine/scm/adapters/subversion_adapter.rb (copia de trabajo)
64 64
            begin
65 65
              doc = REXML::Document.new(output)
66 66
              doc.elements.each("lists/list/entry") do |entry|
67
                # Skip directory if there is no commit date (usually that
68
                # means that we don't have read access to it)
69
                next if entry.attributes['kind'] == 'dir' && entry.elements['commit'].elements['date'].nil?
67 70
                entries << Entry.new({:name => entry.elements['name'].text,
68 71
                            :path => ((path.empty? ? "" : "#{path}/") + entry.elements['name'].text),
69 72
                            :kind => entry.attributes['kind'],