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

chore(github): log result when no default branch returned

parent 2039476b
No related branches found
No related tags found
No related merge requests found
......@@ -512,6 +512,10 @@ export async function initRepo({
}
// istanbul ignore if
if (!repo.defaultBranchRef?.name) {
logger.debug(
{ res },
'No default branch returned - treating repo as empty',
);
throw new Error(REPOSITORY_EMPTY);
}
if (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment