diff --git a/lib/util/git/error.ts b/lib/util/git/error.ts index e16e48b910f894898a8fa84ded37798d5d8cc508..8e63c4cafb578d2fb66c493349a9820d5219fafb 100644 --- a/lib/util/git/error.ts +++ b/lib/util/git/error.ts @@ -22,6 +22,7 @@ export function checkForPlatformFailure(err: Error): void { 'early EOF', 'fatal: bad config', // .gitmodules problem 'expected flush after ref listing', + '[rejected] (stale info)', ]; for (const errorStr of externalHostFailureStrings) { if (err.message.includes(errorStr)) { @@ -120,12 +121,6 @@ export function handleCommitError( logger.error({ err }, 'Error committing files.'); return null; } - if (err.message.includes('[rejected] (stale info)')) { - logger.info( - 'Branch update was rejected because local copy is not up-to-date.' - ); - return null; - } if ( err.message.includes('denying non-fast-forward') || err.message.includes('GH003: Sorry, force-pushing')