未验证 提交 4e575be9 编写于 作者: J João Moreno 提交者: GitHub

Merge pull request #49167 from chenhowa/git-errors

Await git.pullFrom and gitt.pushTo to ensure any failures display an …
......@@ -1355,7 +1355,7 @@ export class CommandCenter {
const remoteCharCnt = remotePick.label.length;
repository.pullFrom(false, remotePick.label, branchPick.label.slice(remoteCharCnt + 1));
await repository.pullFrom(false, remotePick.label, branchPick.label.slice(remoteCharCnt + 1));
}
@command('git.pull', { repository: true })
......@@ -1451,7 +1451,7 @@ export class CommandCenter {
return;
}
repository.pushTo(pick.label, branchName);
await repository.pushTo(pick.label, branchName);
}
private async _sync(repository: Repository, rebase: boolean): Promise<void> {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册