3
0
Fork 0
mirror of https://code.forgejo.org/actions/checkout.git synced 2026-03-20 07:13:13 +00:00

Enable sparse index to fix Git LFS performance with sparse checkouts

This commit is contained in:
Alexander Vostres 2026-03-17 22:15:29 +02:00
parent 0c366fd6a8
commit 23441d43ee
3 changed files with 13 additions and 3 deletions

View file

@ -14,6 +14,7 @@ import {GitVersion} from './git-version'
// sparse-checkout not [well-]supported before 2.28 (see https://github.com/actions/checkout/issues/1386)
export const MinimumGitVersion = new GitVersion('2.18')
export const MinimumGitSparseCheckoutVersion = new GitVersion('2.28')
export const MinimumGitSparseIndexVersion = new GitVersion('2.32')
export interface IGitCommandManager {
branchDelete(remote: boolean, branch: string): Promise<void>