Subversion adapter: ignore directories with no commit date (#1370).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1500 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
aa9d04a4a7
commit
6d5db302ee
|
@ -64,6 +64,9 @@ module Redmine
|
|||
begin
|
||||
doc = REXML::Document.new(output)
|
||||
doc.elements.each("lists/list/entry") do |entry|
|
||||
# Skip directory if there is no commit date (usually that
|
||||
# means that we don't have read access to it)
|
||||
next if entry.attributes['kind'] == 'dir' && entry.elements['commit'].elements['date'].nil?
|
||||
entries << Entry.new({:name => entry.elements['name'].text,
|
||||
:path => ((path.empty? ? "" : "#{path}/") + entry.elements['name'].text),
|
||||
:kind => entry.attributes['kind'],
|
||||
|
|
Loading…
Reference in New Issue