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

fix(gitFs): looser git error check

parent 8348083f
Branches
Tags 18.14.3
No related merge requests found
......@@ -120,10 +120,7 @@ async function handleError(config, err) {
delete config.branchList; // eslint-disable-line no-param-reassign
return err.message;
}
if (
err.message.includes('unable to access') &&
err.message.includes('The requested URL returned error: 5')
) {
if (err.message.includes('The requested URL returned error: 5')) {
logger.debug({ err }, 'git 5xx error');
logger.warn('Git error - aborting');
delete config.branchList; // eslint-disable-line no-param-reassign
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment