mirror of
https://code.forgejo.org/actions/checkout.git
synced 2025-04-24 04:15:33 +00:00
adding standard error
This commit is contained in:
parent
bf085276ce
commit
9634409d1e
2 changed files with 7 additions and 4 deletions
|
@ -104,7 +104,7 @@ class GitCommandManager {
|
|||
args.push('--branches')
|
||||
}
|
||||
|
||||
const output = await this.execGit(args)
|
||||
const output = await this.execGit(args, false, true)
|
||||
|
||||
for (let branch of output.stdout.trim().split('\n')) {
|
||||
branch = branch.trim()
|
||||
|
@ -409,7 +409,7 @@ class GitCommandManager {
|
|||
env[key] = this.gitEnv[key]
|
||||
}
|
||||
|
||||
const stdout: string[] = []
|
||||
const stdout: string[] = ['ardvark']
|
||||
|
||||
const options = {
|
||||
cwd: this.workingDirectory,
|
||||
|
@ -419,6 +419,9 @@ class GitCommandManager {
|
|||
listeners: {
|
||||
stdout: (data: Buffer) => {
|
||||
stdout.push(data.toString())
|
||||
},
|
||||
stderr: (data: Buffer) => {
|
||||
stdout.push(data.toString())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue