mirror of
https://github.com/actions/checkout.git
synced 2026-03-01 08:31:03 +08:00
Suppress verbose checkout output with --quiet
Replace --progress with --quiet in checkout() and add --quiet to checkoutDetach() to prevent per-file output from flooding CI logs on large repositories. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
0c366fd6a8
commit
153bc0ba7c
@ -221,7 +221,7 @@ class GitCommandManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async checkout(ref: string, startPoint: string): Promise<void> {
|
async checkout(ref: string, startPoint: string): Promise<void> {
|
||||||
const args = ['checkout', '--progress', '--force']
|
const args = ['checkout', '--quiet', '--force']
|
||||||
if (startPoint) {
|
if (startPoint) {
|
||||||
args.push('-B', ref, startPoint)
|
args.push('-B', ref, startPoint)
|
||||||
} else {
|
} else {
|
||||||
@ -232,7 +232,7 @@ class GitCommandManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async checkoutDetach(): Promise<void> {
|
async checkoutDetach(): Promise<void> {
|
||||||
const args = ['checkout', '--detach']
|
const args = ['checkout', '--detach', '--quiet']
|
||||||
await this.execGit(args)
|
await this.execGit(args)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user