Browse Source

Fixes switch branch command error handling

main
Eric Amodio 5 years ago
parent
commit
ee55a0bfdd
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/commands/git/branch.ts

+ 1
- 1
src/commands/git/branch.ts View File

@ -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);
}

Loading…
Cancel
Save