class Git::Object::Tree

def check_tree

actually run the git command
def check_tree
  @trees = {}
  @blobs = {}
  data = @base.lib.ls_tree(@objectish)
  data['tree'].each do |key, tree|
    @trees[key] = Git::Object::Tree.new(@base, tree[:sha], tree[:mode])
  end
  data['blob'].each do |key, blob|
    @blobs[key] = Git::Object::Blob.new(@base, blob[:sha], blob[:mode])
  end
  {
    :trees => @trees,
    :blobs => @blobs
  }
end