From ada343da8ead3ce6e27f5cbaf112560d191f00ec Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Wed, 3 Nov 2021 07:22:41 +0100 Subject: [PATCH] fix(github): expected flush after ref listing (#12472) --- lib/util/git/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/util/git/index.ts b/lib/util/git/index.ts index 3f50ee9496..938bf1f31b 100644 --- a/lib/util/git/index.ts +++ b/lib/util/git/index.ts @@ -79,6 +79,7 @@ function checkForPlatformFailure(err: Error): void { 'Could not resolve host', 'early EOF', 'fatal: bad config', // .gitmodules problem + 'expected flush after ref listing', ]; for (const errorStr of externalHostFailureStrings) { if (err.message.includes(errorStr)) { @@ -179,6 +180,7 @@ async function fetchBranchCommits(): Promise<void> { config.branchCommits[ref.replace('refs/heads/', '')] = sha; }); } catch (err) /* istanbul ignore next */ { + checkForPlatformFailure(err); logger.debug({ err }, 'git error'); if (err.message?.includes('Please ask the owner to check their account')) { throw new Error(REPOSITORY_DISABLED); -- GitLab