# File lib/r10k/git/rugged/working_repository.rb, line 64
  def checkout(ref)
    logger.debug1 { "Checking out ref '#{ref}' at #{@path}" }
    sha = resolve(ref)

    with_repo do |repo|
      repo.checkout(sha)
      repo.reset(sha, :hard)
    end
  end