mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
Merge pull request #49167 from chenhowa/git-errors
Await git.pullFrom and gitt.pushTo to ensure any failures display an …
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user