]> source.dussan.org Git - redmine.git/commitdiff
Subversion adapter: ignore directories with no commit date (#1370).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 7 Jun 2008 10:08:11 +0000 (10:08 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 7 Jun 2008 10:08:11 +0000 (10:08 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1500 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/subversion_adapter.rb

index 40c7eb3f14c25afca2ab10ce6030f23e56f7fe27..1cbdce1357c5a21663a3e4cc2bc07a2e45a23a92 100644 (file)
@@ -64,6 +64,9 @@ module Redmine
             begin\r
               doc = REXML::Document.new(output)\r
               doc.elements.each("lists/list/entry") do |entry|\r
+                # Skip directory if there is no commit date (usually that\r
+                # means that we don't have read access to it)\r
+                next if entry.attributes['kind'] == 'dir' && entry.elements['commit'].elements['date'].nil?\r
                 entries << Entry.new({:name => entry.elements['name'].text,\r
                             :path => ((path.empty? ? "" : "#{path}/") + entry.elements['name'].text),\r
                             :kind => entry.attributes['kind'],\r