read_tree

in lib/rugged_adapter/git_layer_rugged.rb [483:495]


      def read_tree(id)
        id = Gollum::Git::Git.new(@rugged_repo).ref_to_sha(id)
        return nil if id.nil?
        begin
          current_tree = @rugged_repo.lookup(id)
          current_tree = current_tree.tree unless current_tree.is_a?(Rugged::Tree)
          @index.read_tree(current_tree)
        rescue
          raise Gollum::Git::NoSuchShaFound
        end
        @current_tree = Gollum::Git::Tree.new(current_tree)
      end