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 56af814 commit a333b4bCopy full SHA for a333b4b
src/commands/git/switch.ts
@@ -205,7 +205,7 @@ export class SwitchGitCommand extends QuickCommand<State> {
205
state.reference.repoPath,
206
w => w.branch?.name === state.reference!.name,
207
);
208
- if (worktree != null) {
+ if (worktree != null && !worktree.main) {
209
if (state.fastForwardTo != null) {
210
state.repos[0].merge('--ff-only', state.fastForwardTo.ref);
211
}
0 commit comments