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

Add support of git protocol over https for fetch #321

Open
pbabinca opened this issue Aug 19, 2024 · 1 comment
Open

Add support of git protocol over https for fetch #321

pbabinca opened this issue Aug 19, 2024 · 1 comment

Comments

@pbabinca
Copy link

pbabinca commented Aug 19, 2024

Currently for URLs specified in <fetch /> restraint either:

  • fetches archive with libcurl when scheme is https, http or file
  • uses git protocol to request specific reference (branch/tag) and file path and only those are fetched as an archive, when scheme is git.

For large repositories selective fetch has much better performance than download of the whole contents. The git protocol does not use encryption. To address requirements of the of data over-the-wire and not to make the fetching less performant I would like to request new feature - fetch URL over https using git protocol.


My understanding is that these code blocks determines the protocol to use fetch the archive:

and I'd suggest to use a new scheme: git+https for these URLs.

fetch_git.c would need to be extended to support, hopefully, small subset of https://github.com/git/git/blob/master/Documentation/gitprotocol-http.txt .

@StykMartin
Copy link
Contributor

Support for git+https certainly sounds reasonable, we just need to make sure we can unpack properly, as this has been problematic for many attempts in the past.

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