Read-only mirror — the public repositories of the Forgejo instance, refreshed every 10 minutes. The live instance (fg.dieschoenewolke.de) is reachable only over the VPN; clone here with https://git.dieschoenewolke.de/git/<owner>/<repo>.git.
summaryrefslogtreecommitdiff
path: root/src/git-command-manager.ts
diff options
context:
space:
mode:
authorVallie Joseph <vmjoseph@github.com>2022-12-01 15:45:10 +0000
committerVallie Joseph <vmjoseph@github.com>2022-12-01 15:45:10 +0000
commita55f5b82be9a6e2937f5ac87eafaa9582467e3b3 (patch)
tree879affd2b1e6a3b55904e28034e6b13f412ab6df /src/git-command-manager.ts
parente068468af774f10588daed3f2f494d52708b9213 (diff)
.
Diffstat (limited to 'src/git-command-manager.ts')
-rw-r--r--src/git-command-manager.ts28
1 files changed, 10 insertions, 18 deletions
diff --git a/src/git-command-manager.ts b/src/git-command-manager.ts
index 0fc0aed..2a0b588 100644
--- a/src/git-command-manager.ts
+++ b/src/git-command-manager.ts
@@ -429,33 +429,25 @@ class GitCommandManager {
// }}
const listenersD = {...customListeners, ...defaultListener}
const stdout: string[] = []
- let temp = ''
- let temp2 = ''
+ // let temp = ''
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()
+ // }
+ // })
}
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(result.stdout)
return result
}