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

Support for sparse checkouts #5842

Open
maczejka opened this issue Dec 16, 2024 · 1 comment
Open

Support for sparse checkouts #5842

maczejka opened this issue Dec 16, 2024 · 1 comment
Labels
bug Something isn't working 🦀gitoxide🦀 `gitoxide` might help here

Comments

@maczejka
Copy link

Version

0.14.4

Operating System

macOS

Distribution Method

dmg (Apple Silicon)

Describe the issue

Error when trying to add a repo using sparse checkouts:
image

See also: https://git-scm.com/docs/sparse-index

The repo in question is a (very) large monorepo with sparse checkout tooling. On a full checkout, gitbutler is unusably slow. It was my hope that the sparse checkout would help mitigate those performance issue, but support for this unfortunately seems to be missing entirely.

How to reproduce

No response

Expected behavior

No response

Relevant log output

No response

@maczejka maczejka added the bug Something isn't working label Dec 16, 2024
@Byron Byron added the 🦀gitoxide🦀 `gitoxide` might help here label Dec 16, 2024
@Byron
Copy link
Collaborator

Byron commented Dec 16, 2024

Thanks a lot for reporting!

git2 is used in many places still and it won't be able to open indices that represent sparse checkouts. gitoxide will do better eventually, but that will only work once git2 isn't used anymore for anything that touches the .git/index.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 🦀gitoxide🦀 `gitoxide` might help here
Projects
None yet
Development

No branches or pull requests

2 participants