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

fix(gitlab): catch/throw ‘empty’ error

parent dff1fb13
No related merge requests found
......@@ -160,6 +160,9 @@ async function initRepo({
await Promise.all([getPrList(), getFileList()]);
} catch (err) /* istanbul ignore next */ {
logger.debug('Caught initRepo error');
if (err.message.includes('HEAD is not a symbolic ref')) {
throw new Error('empty');
}
if (err.message === 'archived') {
throw err;
}
......
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