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:
parent
193af67f99
commit
19a9cba214
@ -115,7 +115,7 @@ module Redmine
|
|||||||
Entry.new(:path => '', :kind => 'dir')
|
Entry.new(:path => '', :kind => 'dir')
|
||||||
else
|
else
|
||||||
# Search for the entry in the parent directory
|
# 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
|
es ? es.detect {|e| e.name == search_name} : nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user