Skip to content

Commit 67b6b67

Browse files
committed
Ensures to pick first entry for remote branches
1 parent d0936aa commit 67b6b67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/git/worktree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ export class WorktreeGitCommand extends QuickCommand<State> {
608608
[
609609
createFlagsQuickPickItem<CreateFlags, Uri>(
610610
state.flags,
611-
[],
611+
isRemoteBranch ? ['-b'] : [],
612612
{
613613
label: isRemoteBranch ? 'Create Local Branch and Worktree' : context.title,
614614
description: ' in subfolder',

0 commit comments

Comments
 (0)