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:41:55 +0000
committerVallie Joseph <vmjoseph@github.com>2022-12-01 15:41:55 +0000
commit02cebcdf22a06daca7702374702a7ffcfb39ecff (patch)
tree865733df8bd28b801d3265d9c1aecc91e9a07c12 /src/git-command-manager.ts
parent428cb64f0106ba1bcbc5d0280e937a876bd17495 (diff)
.
Diffstat (limited to 'src/git-command-manager.ts')
-rw-r--r--src/git-command-manager.ts9
1 files changed, 9 insertions, 0 deletions
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
}