From 071e55db6af2fd299b99c446f69534143f69c84c Mon Sep 17 00:00:00 2001 From: Eric Holscher Date: Tue, 13 Jun 2023 10:22:26 -0700 Subject: [PATCH] Add the api_client into the sync_repo task This is required for .com --- readthedocs/projects/tasks/builds.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/readthedocs/projects/tasks/builds.py b/readthedocs/projects/tasks/builds.py index 9ddcb6524fb..e666f12f634 100644 --- a/readthedocs/projects/tasks/builds.py +++ b/readthedocs/projects/tasks/builds.py @@ -209,6 +209,9 @@ def execute(self): environment={ "GIT_TERMINAL_PROMPT": "0", }, + # Pass the api_client so that all environments have it. + # This is needed for ``readthedocs-corporate``. + api_client=self.data.api_client, # Do not try to save commands on the db because they are just for # sync repository record=False,