fixed:修复git内置插件,push取消输入账号密码时,识别标红终端输出语句为乱码的问题

This commit is contained in:
chriswang521 2024-05-17 14:33:28 +08:00 committed by wangpenglong
parent 1593493860
commit da8bbf73ca
1 changed files with 6 additions and 0 deletions

View File

@ -3809,6 +3809,12 @@ 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.';
}
// We explicitly do not await this promise, because we do not
// want the command execution to be stuck waiting for the user
// to take action on the notification.