From 5df518aac9fe064f07a33b83b54039aad7470865 Mon Sep 17 00:00:00 2001 From: xiayuqi Date: Thu, 21 Sep 2023 19:54:41 -0700 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dgit=E5=86=85=E7=BD=AE?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=EF=BC=8Cpush=E5=8F=96=E6=B6=88=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E8=B4=A6=E5=8F=B7=E5=AF=86=E7=A0=81=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E8=AF=86=E5=88=AB=E6=A0=87=E7=BA=A2=E7=BB=88=E7=AB=AF=E8=BE=93?= =?UTF-8?q?=E5=87=BA=E8=AF=AD=E5=8F=A5=E4=B8=BA=E4=B9=B1=E7=A0=81=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/git/src/commands.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/extensions/git/src/commands.ts b/extensions/git/src/commands.ts index 32812e42..7c813a34 100644 --- a/extensions/git/src/commands.ts +++ b/extensions/git/src/commands.ts @@ -3094,6 +3094,13 @@ export class CommandCenter { return; } + //修复git内置插件,push取消输入账号密码时,识别标红终端输出语句为乱码的问题 + + if (message.indexOf("Unauthorized") >= 0) { + console.log('git error output:' + message); + message = "Git:Remote:Failed to authenticate to git remote."; + } + const allChoices = Array.from(choices.keys()); const result = type === 'error' ? await window.showErrorMessage(message, options, ...allChoices)