mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
Git - catch exceptions while fast-forwarding a branch (#164128)
Fixes #163685
This commit is contained in:
@@ -40,7 +40,12 @@ class CheckoutItem implements QuickPickItem {
|
||||
const pullBeforeCheckout = config.get<boolean>('pullBeforeCheckout', false) === true;
|
||||
|
||||
if (pullBeforeCheckout) {
|
||||
await this.repository.fastForwardBranch(this.ref.name!);
|
||||
try {
|
||||
await this.repository.fastForwardBranch(this.ref.name!);
|
||||
}
|
||||
catch (err) {
|
||||
// noop
|
||||
}
|
||||
}
|
||||
|
||||
await this.repository.checkout(this.ref.name, opts);
|
||||
|
||||
Reference in New Issue
Block a user