3
0
Fork 0
mirror of https://code.forgejo.org/actions/checkout.git synced 2026-06-18 10:56:27 +00:00
This commit is contained in:
Jason Barnett 2026-06-02 16:27:11 +02:00 committed by GitHub
commit 12164d1a86
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 24 additions and 4 deletions

View file

@ -228,7 +228,14 @@ class GitCommandManager {
args.push(ref)
}
await this.execGit(args)
// Retry checkout because it can trigger network I/O when using partial
// clones (filter=blob:none). In that mode git lazily fetches missing
// blobs from the promisor remote during checkout, so a transient network
// failure would otherwise surface as a hard error here.
const that = this
await retryHelper.execute(async () => {
await that.execGit(args)
})
}
async checkoutDetach(): Promise<void> {
@ -463,7 +470,10 @@ class GitCommandManager {
args.push('--recursive')
}
await this.execGit(args)
const that = this
await retryHelper.execute(async () => {
await that.execGit(args)
})
}
async submoduleStatus(): Promise<boolean> {