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:
parent
0c366fd6a8
commit
153bc0ba7c
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue