Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dulwich broken with sparse checkout #175

Open
dtrifiro opened this issue Jan 31, 2023 · 1 comment
Open

dulwich broken with sparse checkout #175

dtrifiro opened this issue Jan 31, 2023 · 1 comment
Labels
enhancement New feature or request feature request

Comments

@dtrifiro
Copy link
Contributor

When using a git repo with sparse-checkout set (git sparse-checkout set), this sets the worktreeconfig = true in the git config. This is currently not supported by dulwich <= 0.21.2, but should be in 0.21.3, see jelmer/dulwich#1133

Original discuss context: https://discuss.dvc.org/t/dvc-with-git-sparse-checkout/1480

@dtrifiro dtrifiro added bug Something isn't working dulwich labels Jan 31, 2023
@pmrowla
Copy link
Contributor

pmrowla commented Jan 31, 2023

This is a known issue, sparse checkout is also unsupported in libgit2. Worktree support is also separate from sparse checkouts and it will likely still be broken even after the dulwich change. (The dulwich change really only adds support for git worktree https://git-scm.com/docs/git-worktree)

Sparse checkout is a non-trivial git feature for us to support

jelmer/dulwich#405
libgit2/libgit2#2263

@pmrowla pmrowla added enhancement New feature or request feature request and removed bug Something isn't working dulwich labels Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature request
Projects
None yet
Development

No branches or pull requests

2 participants