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 Git Sparse Checkout #27

Open
DiogoRoloOS opened this issue Apr 30, 2021 · 1 comment
Open

Support Git Sparse Checkout #27

DiogoRoloOS opened this issue Apr 30, 2021 · 1 comment

Comments

@DiogoRoloOS
Copy link

Can the libgit2 be updated to v1.1.0?
That way Git Sparse Checkout is supported.

At the moment, we get the following error:

2021-04-30 17:08:46.741749 GitStatusCache.exe (0x0000943c) 0x00009460 Error Git.GetGitStatus.FailedToOpenRepository Failed to open repository. { "repositoryPath": "xxxxxxx/.git/", "result": "Generic Error", "lastError": "unsupported repository version 1. Only versions up to 0 are supported." }

@hcoona
Copy link

hcoona commented Sep 2, 2022

I made a progress on it. I build GitStatusCache.exe with libgit2 v1.4.2, see hcoona#1.

Unfortunately, libgit2 currently (September 2, 2022) still not fully support sparse checkout feature. It lack support to Git extensions.worktreeconfig. There is an ongoing MR for that, see libgit2/libgit2#6044 & libgit2/libgit2#6202.

I see these from log:

2022-09-02 13:47:46.124684	GitStatusCache.exe (0x000103a8)	0x0000b528	Error	Git.GetGitStatus.FailedToOpenRepository	Failed to open repository. { "repositoryPath": "********************", "result": "Generic Error", "lastError": "unsupported extension name extensions.worktreeconfig" }
2022-09-02 13:47:46.124684	GitStatusCache.exe (0x000103a8)	0x0000b528	Warning	StatusController.FailedRequest	Failed to service request. { "error": "Failed to retrieve status of git repository at provided 'Path'.", "request": "{"Version":1,"Path":"********************","Action":"GetStatus"}" }
2022-09-02 13:47:46.124684	GitStatusCache.exe (0x000103a8)	0x0000b528	Spam	NamedPipeInstance.OnClientRequest.Response	Sending response to client. { "response": "{"Version":1,"Error":"Failed to retrieve status of git repository at provided 'Path'."}" }

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

No branches or pull requests

2 participants