We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 707c7ae commit 3151156Copy full SHA for 3151156
src/git/utils/-webview/branch.utils.ts
@@ -48,7 +48,7 @@ export async function getDefaultBranchName(
48
49
const integration = await remote.getIntegration();
50
const defaultBranch = await integration?.getDefaultBranch?.(remote.provider.repoDesc, options);
51
- return `${remote.name}/${defaultBranch?.name}`;
+ return defaultBranch && `${remote.name}/${defaultBranch?.name}`;
52
}
53
54
export async function getTargetBranchName(
0 commit comments