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
Shallow clones don't seem to work for local clones #6634
Comments
Yes, there's a lot of disappointment all around in local remotes. git will either invoke We do neither of those things. We open up the remote as our own object database and sling files over. I think that this is in many ways a very clever solution, but as capabilities are added to the smart protocol, it would mean that they would need to be independently implemented in the local transport, which is a bummer. I've coincidentally been playing around with refactoring the smart protocol handling a bit - and the local transport has been my test case for it - invoking |
In the meantime, should the |
We now error on |
From what I can tell, shallow clones don't seem to work with local clones. Am I missing some option? I'm guessing they only work with the smart transport. I would expect it to work like the
git
CLI, which can support shallow clones when usingfile://
URLs.git clone --depth=1 file:///path/to/test
Reproduction steps
Expected behavior
Local repos can be shallow cloned.
Actual behavior
It seems to ignore the depth parameter.
Version of libgit2 (release number or SHA1)
4939fa7
Operating system(s) tested
macOS
The text was updated successfully, but these errors were encountered: