# File lib/r10k/git/shellgit/thin_repository.rb, line 27
  def clone(remote, opts = {})
    # todo check if opts[:reference] is set
    set_cache(remote)
    @cache_repo.sync

    super(remote, opts.merge(:reference => @cache_repo.git_dir.to_s))
    setup_cache_remote
  end