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)