diff options
| author | Vallie Joseph <vmjoseph@github.com> | 2022-12-01 18:37:34 +0000 |
|---|---|---|
| committer | Vallie Joseph <vmjoseph@github.com> | 2022-12-01 18:37:34 +0000 |
| commit | 189b158fdd7e0199b16549cea256506e0c5a142e (patch) | |
| tree | 2d8683a7194005a9b2dd1c7ba9ebe9d2805742bb /src/git-command-manager.ts | |
| parent | 01e4b8775f24445822af997b3dccf0174ae9ace0 (diff) | |
Diffstat (limited to 'src/git-command-manager.ts')
| -rw-r--r-- | src/git-command-manager.ts | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/src/git-command-manager.ts b/src/git-command-manager.ts index 0fc0aed..2c67ef5 100644 --- a/src/git-command-manager.ts +++ b/src/git-command-manager.ts @@ -429,33 +429,35 @@ class GitCommandManager { // }} const listenersD = {...customListeners, ...defaultListener} const stdout: string[] = [] - let temp = '' - let temp2 = '' + // let temp = '' + // let temp2 = '' const options = { cwd: this.workingDirectory, env, silent, ignoreReturnCode: allowAllExitCodes, - listeners: listenersD, - errStream: new stream.Writable({ - write(chunk, _, next) { - temp += chunk.toString() - next() - } - }), - - outStream: new stream.Writable({ - write(chunk, _, next) { - temp2 += chunk.toString() - next() - } - }) + listeners: listenersD + // , + // errStream: new stream.Writable({ + // write(chunk, _, next) { + // 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()) + // core.info(temp.length.toString()) + // core.info(temp2.length.toString()) + core.info(result.stdout) return result } |
