Explorar el Código

Fixes switch branch command error handling

main
Eric Amodio hace 5 años
padre
commit
ee55a0bfdd
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      src/commands/git/branch.ts

+ 1
- 1
src/commands/git/branch.ts Ver fichero

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

Cargando…
Cancelar
Guardar