-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
fetchGit should do shallow fetches when possible #1837
Comments
Are shallow fetches incremental? I.e. if I do a shallow fetch, then the repo receives a few new commits, and I do another shallow fetch, will it fetch only the delta? |
Yep |
@shlevy I see this in the backlog, in other words, it's stalled for now? Would you accept a pull request for it? |
This was brought up in NixOS#1837 and seems sensible. The issue talks about implementing a fallback, in case a shallow fetch fails. This was not implemented so far, because I have not yet run into a situation where it was necessary.
Shallow clones are now supported. However we can't make it the default because it would break the |
Documentation doesn't show how to enable shallow cloning, is there a human-readable example of it? |
Hi, can one tell me in which version of |
Especially as many git servers, including github, have allowReachableSHA1InWant, fetchGit should just try fetching the specific rev or the HEAD of the specific ref first, and only then fall back to a fuller fetch.
The text was updated successfully, but these errors were encountered: