mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 22:12:26 +01:00
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user