Skip to content

onefetch returns error when repository uses core.splitIndex=true #594

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

Closed
Tracked by #364
eigengrau opened this issue Feb 25, 2022 · 3 comments
Closed
Tracked by #364

onefetch returns error when repository uses core.splitIndex=true #594

eigengrau opened this issue Feb 25, 2022 · 3 comments
Assignees
Labels

Comments

@eigengrau
Copy link

When a Git repository is using split index files, onefetch (2.10.2) fails with an error.

Steps to reproduce

repo=$(mktemp -d)
git -c core.splitIndex=true init $repo
git -C $repo commit --allow-empty -m init
env -C $repo onefetch

Example output

Initialized empty Git repository in /run/user/1000/tmp.qTh7DooE0d/.git/
[master (root-commit) 87171b0] init
[onefetch error]: unsupported mandatory extension: 'link'; class=Index (10)
@spenserblack
Copy link
Collaborator

@Byron Byron self-assigned this Apr 2, 2022
@Byron
Copy link
Collaborator

Byron commented Apr 3, 2022

This will be fixed once onefetch fully transitions to gitoxide as I will make sure that split-index support is implemented in time. Currently git2 is still required to read configuration files and obtain the worktree status, and for the latter the index is definitely needed even though it appears to load the index eagerly.

You can subscribe to the linked tracking issue for status updates.

@o2sh
Copy link
Owner

o2sh commented Jul 3, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@o2sh o2sh added the stale label Jul 3, 2022
@o2sh o2sh closed this as completed Jul 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants