mirror of
https://github.com/actions/checkout.git
synced 2025-07-12 08:40:45 +00:00
Remove unneeded commit information from stdout
This commit is contained in:
parent
21dc310f19
commit
0e8d9f459e
2 changed files with 7 additions and 4 deletions
|
@ -255,7 +255,7 @@ class GitCommandManager {
|
|||
}
|
||||
|
||||
async log1(): Promise<string> {
|
||||
const output = await this.execGit(['log', '-1'])
|
||||
const output = await this.execGit(['log', '-1'], false, true)
|
||||
return output.stdout
|
||||
}
|
||||
|
||||
|
@ -390,7 +390,8 @@ class GitCommandManager {
|
|||
|
||||
private async execGit(
|
||||
args: string[],
|
||||
allowAllExitCodes = false
|
||||
allowAllExitCodes = false,
|
||||
silent = false
|
||||
): Promise<GitOutput> {
|
||||
fshelper.directoryExistsSync(this.workingDirectory, true)
|
||||
|
||||
|
@ -409,6 +410,7 @@ class GitCommandManager {
|
|||
const options = {
|
||||
cwd: this.workingDirectory,
|
||||
env,
|
||||
silent,
|
||||
ignoreReturnCode: allowAllExitCodes,
|
||||
listeners: {
|
||||
stdout: (data: Buffer) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue