3
0
Fork 0
mirror of https://code.forgejo.org/actions/checkout.git synced 2026-02-27 05:25:40 +00: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:
Max schwenk 2026-02-25 18:15:50 -05:00
parent 0c366fd6a8
commit 153bc0ba7c

View file

@ -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)
} }