瀏覽代碼

Fixes switch branch command error handling

main
Eric Amodio 5 年之前
父節點
當前提交
ee55a0bfdd
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/commands/git/branch.ts

+ 1
- 1
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);
}

Loading…
取消
儲存