Reject empty Mercurial entries (#4098).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3029 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2009-11-11 15:33:30 +00:00
parent 4b83a0d848
commit 22d12032e7
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ module Redmine
:path => (path.nil? or path.empty? ? e.first : "#{with_trailling_slash(path)}#{e.first}"),
:kind => (e.size > 1 ? 'dir' : 'file'),
:lastrev => Revision.new
}) unless entries.detect{|entry| entry.name == e.first}
}) unless e.empty? || entries.detect{|entry| entry.name == e.first}
end
end
end