scm: git: call entries_git() in adapter entry() for browsing tree performance (#7047).

cat/diff/blame link calls adapter entry().
Abstract adapter entry() calls adapter entries().
Git adapter entries() is very slow.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5642 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-05-04 18:09:13 +00:00
parent 193af67f99
commit 19a9cba214
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ module Redmine
Entry.new(:path => '', :kind => 'dir')
else
# Search for the entry in the parent directory
es = entries(search_path, identifier)
es = entries_git(search_path, identifier)
es ? es.detect {|e| e.name == search_name} : nil
end
end