mirror of
https://github.com/Microsoft/vscode
synced 2024-10-31 11:34:45 +00:00
Await git.pullFrom and gitt.pushTo to ensure any failures display an error dialog to the user
This commit is contained in:
parent
017d09e2fe
commit
a5f304f5f1
1 changed files with 2 additions and 2 deletions
|
@ -1333,7 +1333,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 })
|
||||
|
@ -1429,7 +1429,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> {
|
||||
|
|
Loading…
Reference in a new issue