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-11-30 20:35:36 +0000
committerVallie Joseph <vmjoseph@github.com>2022-11-30 20:35:36 +0000
commit480cfb6bb2cad4a025e362306983c269cc16ff76 (patch)
tree839559c1d76b046f81ec18fae76994425e42587c /src/git-command-manager.ts
parenta8f7cb6416e87946ead000af5355735c0d733e13 (diff)
adding stderr
Diffstat (limited to 'src/git-command-manager.ts')
-rw-r--r--src/git-command-manager.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/git-command-manager.ts b/src/git-command-manager.ts
index d150d0f..afcb285 100644
--- a/src/git-command-manager.ts
+++ b/src/git-command-manager.ts
@@ -91,6 +91,7 @@ class GitCommandManager {
async branchList(remote: boolean): Promise<string[]> {
const result: string[] = []
+ const stderr: string[] = []
// Note, this implementation uses "rev-parse --symbolic-full-name" because the output from
// "branch --list" is more difficult when in a detached HEAD state.
@@ -106,7 +107,7 @@ class GitCommandManager {
const listeners = {
stderr: (data: Buffer) => {
- core.debug(data.toString())
+ stderr.push(data.toString())
}
}
const output = await this.execGit(args, false, false, listeners)
@@ -123,7 +124,7 @@ class GitCommandManager {
result.push(branch)
}
}
-
+ core.debug(stderr.join('\n'))
return result
}