Skip to content

Commit 48a1886

Browse files
committed
Fixes delete worktree offering main worktree
1 parent 4b9bd94 commit 48a1886

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
@@ -703,7 +703,7 @@ export class WorktreeGitCommand extends QuickCommand<State> {
703703
context.title = getTitle('Worktrees', state.subcommand);
704704

705705
const result = yield* pickWorktreesStep(state, context, {
706-
filter: wt => wt.main || !wt.opened, // Can't delete the main or opened worktree
706+
filter: wt => !wt.main || !wt.opened, // Can't delete the main or opened worktree
707707
includeStatus: true,
708708
picked: state.uris?.map(uri => uri.toString()),
709709
placeholder: 'Choose worktrees to delete',

0 commit comments

Comments
 (0)