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