diff options
| author | Vallie Joseph <vmjoseph@github.com> | 2022-11-30 20:35:36 +0000 |
|---|---|---|
| committer | Vallie Joseph <vmjoseph@github.com> | 2022-11-30 20:35:36 +0000 |
| commit | 480cfb6bb2cad4a025e362306983c269cc16ff76 (patch) | |
| tree | 839559c1d76b046f81ec18fae76994425e42587c /src/git-command-manager.ts | |
| parent | a8f7cb6416e87946ead000af5355735c0d733e13 (diff) | |
adding stderr
Diffstat (limited to 'src/git-command-manager.ts')
| -rw-r--r-- | src/git-command-manager.ts | 5 |
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 } |
