diff --git a/src/commands/git/branch.ts b/src/commands/git/branch.ts index 7dec270..d898a7c 100644 --- a/src/commands/git/branch.ts +++ b/src/commands/git/branch.ts @@ -379,7 +379,7 @@ export class BranchGitCommand extends QuickCommandBase { } if (state.flags.includes('--switch')) { - void state.repo.switch(state.reference.ref, { createBranch: state.name }); + void (await state.repo.switch(state.reference.ref, { createBranch: state.name })); } else { void state.repo.branch(...state.flags, state.name, state.reference.ref); }