Skip to content

Enable sparse index to fix Git LFS performance with sparse checkouts#2389

Open
Alexx999 wants to merge 1 commit intoactions:mainfrom
Alexx999:sparse-index
Open

Enable sparse index to fix Git LFS performance with sparse checkouts#2389
Alexx999 wants to merge 1 commit intoactions:mainfrom
Alexx999:sparse-index

Conversation

@Alexx999
Copy link

If you have LFS in the repo, enabling sparse checkouts is catastrophic for LFS performance due to LFS slowly enumerating every file in the repo one-by-one ignoring sparse-checkout filters and LFS own --include.
This is fixed by enabling sparse index, which is pretty much a requirement for git-lfs compatibility with sparse checkout, see git-lfs/git-lfs#5796
Checking for settings.lfs doesn't quite work here as lfs might be disabled during the initial checkout and accessed later in scripts (actually that's our case).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant