Skip to content
Snippets Groups Projects
Commit 693963d9 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix: catch prune branch error

parent 01acebd8
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,11 @@ async function cleanUpBranches(
await deleteBranch(branchName);
}
} catch (err) /* istanbul ignore next */ {
if (err.message?.includes("bad revision 'origin/")) {
if (err.message === 'config-validation') {
logger.debug(
'Cannot prune branch due to collision between tags and branch names'
);
} else if (err.message?.includes("bad revision 'origin/")) {
logger.debug(
{ branchName },
'Branch not found on origin when attempting to prune'
......
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