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

fix: try/catch branch cache modified call

parent aa16b40d
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,14 @@ async function generateBranchCache(branch: BranchConfig): Promise<BranchCache> {
}
}
const automerge = !!branch.automerge;
const isModified = sha ? await isBranchModified(branchName) : false;
let isModified = false;
if (sha) {
try {
isModified = await isBranchModified(branchName);
} catch (err) /* istanbul ignore next */ {
// Do nothing
}
}
const upgrades: BranchUpgradeCache[] = branch.upgrades
? branch.upgrades.map(generateBranchUpgradeCache)
: [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment