From 3854c3fa8e45862abb508d89485e3387a565e866 Mon Sep 17 00:00:00 2001 From: susiwen8 Date: Mon, 2 May 2022 20:49:00 +0800 Subject: [PATCH] fix: close `create fork` message will create fork (#148438) --- extensions/github/src/pushErrorHandler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/github/src/pushErrorHandler.ts b/extensions/github/src/pushErrorHandler.ts index cf353805105..37f138caffb 100644 --- a/extensions/github/src/pushErrorHandler.ts +++ b/extensions/github/src/pushErrorHandler.ts @@ -23,7 +23,7 @@ async function handlePushError(repository: Repository, remote: Remote, refspec: const no = localize('no', "No"); const answer = await window.showInformationMessage(localize('fork', "You don't have permissions to push to '{0}/{1}' on GitHub. Would you like to create a fork and push to it instead?", owner, repo), yes, no); - if (answer === no) { + if (answer !== yes) { return; }