adding stderr
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user