# File lib/r10k/git/cache.rb, line 80
  def sync!
    if cached?
      @repo.fetch
    else
      logger.debug1 "Creating new git cache for #{@remote.inspect}"

      # TODO extract this to an initialization step
      if !File.exist?(settings[:cache_root])
        FileUtils.mkdir_p settings[:cache_root]
      end

      @repo.clone(@remote)
    end
  end