# File lib/r10k/git/rugged/working_repository.rb, line 74
  def fetch(remote = 'origin')
    logger.debug1 { "Fetching remote '#{remote}' at #{@path}" }
    options = {:credentials => credentials}
    refspecs = ["+refs/heads/*:refs/remotes/#{remote}/*"]
    results = with_repo { |repo| repo.fetch(remote, refspecs, options) }
    report_transfer(results, remote)
  rescue Rugged::SshError, Rugged::NetworkError => e
    raise R10K::Git::GitError.new(e.message, :git_dir => git_dir, :backtrace => e.backtrace)
  end