Skip to content

Commit cf319ab

Browse files
committed
Fixes switch confirmation honoring
1 parent e503a4e commit cf319ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/git/switch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export class SwitchGitCommand extends QuickCommand<State> {
183183
state.createBranch = undefined;
184184
}
185185

186-
if (this.confirm(state.confirm || context.switchToLocalFrom != null)) {
186+
if (this.confirm(context.switchToLocalFrom != null ? true : state.confirm)) {
187187
const result = yield* this.confirmStep(state as SwitchStepState, context);
188188
if (result === StepResultBreak) continue;
189189

0 commit comments

Comments
 (0)