Browse Source

Subversion adapter: ignore directories with no commit date (#1370).

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1500 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/0.8.0-RC1
Jean-Philippe Lang 16 years ago
parent
commit
6d5db302ee
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      lib/redmine/scm/adapters/subversion_adapter.rb

+ 3
- 0
lib/redmine/scm/adapters/subversion_adapter.rb View File

@@ -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…
Cancel
Save