提交 24dcf7a2 编写于 作者: J Joao Moreno

🐛 git always show stderr

fixes #23632
上级 e2e8ee07
......@@ -330,6 +330,10 @@ export class Git {
const result = await exec(child, options);
if (options.log !== false && result.stderr.length > 0) {
this.log(`${result.stderr}\n`);
}
if (result.exitCode) {
let gitErrorCode: string | undefined = void 0;
......@@ -349,10 +353,6 @@ export class Git {
gitErrorCode = GitErrorCodes.CantAccessRemote;
}
if (options.log !== false) {
this.log(`${result.stderr}\n`);
}
return Promise.reject<IExecutionResult>(new GitError({
message: 'Failed to execute git',
stdout: result.stdout,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册