Skip to content
Snippets Groups Projects
Unverified Commit 40343d71 authored by Rhys Arkins's avatar Rhys Arkins Committed by GitHub
Browse files

fix(git): detect github force push rejection (#12108)

parent 6f649eb6
No related branches found
No related tags found
No related merge requests found
......@@ -850,7 +850,10 @@ export async function commitFiles({
);
return null;
}
if (err.message.includes('denying non-fast-forward')) {
if (
err.message.includes('denying non-fast-forward') ||
err.message.includes('GH003: Sorry, force-pushing')
) {
logger.debug({ err }, 'Permission denied to update branch');
const error = new Error(CONFIG_VALIDATION);
error.validationSource = branchName;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment