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

multi protocol handoff #74

Open
graingert opened this issue Mar 10, 2016 · 4 comments
Open

multi protocol handoff #74

graingert opened this issue Mar 10, 2016 · 4 comments

Comments

@graingert
Copy link

it would be great to support handing off to different git protocols with:

gittorrent+https://some.http.git.server/path/to/repo.git

@cjb
Copy link
Owner

cjb commented Mar 10, 2016

I'm not sure I understand what this would do, sorry -- could you give a little more detail?

Oh, maybe you mean:

gittorrent://user/repo+https://server/user/repo

where it first tries gittorrent, and if that fails, it knows where a backup centralized server is?

@graingert
Copy link
Author

@cjb no I mean gittorrent://some.http.git.server/path/to/repo.git tries git://some.http.git.server/path/to/repo.git and fails because the endpoint only supports https.

I'd like gittorrent+https://some.http.git.server/path/to/repo.git to grab commit hashes from https://some.http.git.server/path/to/repo.git and I'd like gittorrent+xyz://some.http.git.server/path/to/repo.git to grab commit hashes from xyz://some.http.git.server/path/to/repo.git

@cjb
Copy link
Owner

cjb commented Mar 10, 2016

Oh! Cool, thanks. Makes sense.

If git and https are the only protocols you could imagine using this way, we could also just make gittorrent:// try Git, and then HTTPS.

@graingert
Copy link
Author

@cjb there are a handful of other git protocols that I might use but I won't be able to list them all

Also there are other git protocol wrappers that hand off in this way, so you can do protocolx+protocoly+protocolz:// and each wrapper pops itself off the front of the URL

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