From 25424e8595832e5920397a67f42204c13dbd97f8 Mon Sep 17 00:00:00 2001 From: Vallie Joseph Date: Thu, 1 Dec 2022 15:41:55 +0000 Subject: [PATCH] . --- src/git-command-manager.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/git-command-manager.ts b/src/git-command-manager.ts index 2cac95d..0fc0aed 100644 --- a/src/git-command-manager.ts +++ b/src/git-command-manager.ts @@ -430,6 +430,7 @@ class GitCommandManager { const listenersD = {...customListeners, ...defaultListener} const stdout: string[] = [] let temp = '' + let temp2 = '' const options = { cwd: this.workingDirectory, env, @@ -441,12 +442,20 @@ class GitCommandManager { temp += chunk.toString() next() } + }), + + outStream: new stream.Writable({ + write(chunk, _, next) { + temp2 += chunk.toString() + next() + } }) } result.exitCode = await exec.exec(`"${this.gitPath}"`, args, options) result.stdout = stdout.join('') core.info(temp.length.toString()) + core.info(temp2.length.toString()) return result }