diff --git a/extensions/git/src/commands.ts b/extensions/git/src/commands.ts index 5b9e1e12151..cdb91f8f7bb 100644 --- a/extensions/git/src/commands.ts +++ b/extensions/git/src/commands.ts @@ -40,7 +40,12 @@ class CheckoutItem implements QuickPickItem { const pullBeforeCheckout = config.get('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);