We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2e8ee0 commit 24dcf7aCopy full SHA for 24dcf7a
1 file changed
extensions/git/src/git.ts
@@ -330,6 +330,10 @@ export class Git {
330
331
const result = await exec(child, options);
332
333
+ if (options.log !== false && result.stderr.length > 0) {
334
+ this.log(`${result.stderr}\n`);
335
+ }
336
+
337
if (result.exitCode) {
338
let gitErrorCode: string | undefined = void 0;
339
@@ -349,10 +353,6 @@ export class Git {
349
353
gitErrorCode = GitErrorCodes.CantAccessRemote;
350
354
}
351
355
352
- if (options.log !== false) {
- this.log(`${result.stderr}\n`);
- }
-
356
return Promise.reject<IExecutionResult>(new GitError({
357
message: 'Failed to execute git',
358
stdout: result.stdout,
0 commit comments