in lib/rugged_adapter/git_layer_rugged.rb [395:405]
def tree_entry(commit, path)
pathname = Pathname.new(path)
tmp_entry = nil
pathname.each_filename do |dir|
tmp_entry = tmp_entry ? @repo.lookup(tmp_entry[:oid])[dir] : commit.tree[dir]
return nil unless tmp_entry
end
tmp_entry
end