def remote_for_request(request)
      repo_owner = request.head.repo.owner.login
      remote_url = server.remote_url_for(repo_owner)
      remotes = remotes_for_url(remote_url)
      if remotes.empty?
        remote = "review_#{repo_owner}"
        git_call("remote add #{remote} #{remote_url}", debug_mode, true)
      else
        remote = remotes.first
      end
      remote
    end
def remote_for_request(request)
      repo_owner = request.head.repo.owner.login
      remote_url = server.remote_url_for(repo_owner)
      remotes = remotes_for_url(remote_url)
      if remotes.empty?
        remote = "review_#{repo_owner}"
        git_call("remote add #{remote} #{remote_url}", debug_mode, true)
      else
        remote = remotes.first
      end
      remote
    end
Find or create the correct remote for a fork with a given owner name.