Re: Is anyone working on a next-gen Git protocol?
- From
- Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
- Date
- Oct 7, 2012, 20:22 UTC
- Message-ID
- <20121007202220.GA16115@LK-Perkele-VI.localdomain>
- In-Reply-To
- <CACBZZX6b+3P8M+z+X13k9Pq3tvVUfs_k1=foQVreX8K801=efQ@mail.gmail.com>
On Sun, Oct 07, 2012 at 09:57:56PM +0200, Ævar Arnfjörð Bjarmason wrote:
> > Has anyone started working on a next-gen Git protocol as a result of > this discussion? If not I thought I'd give it a shot if/when I have > time.
Unfortunately, client signaling the version is nasty to do in ways that wouldn't cause current servers to hang up or do other undesirable things.
git://: Git-daemon will hang up[1] if it receives command it won't understand (and one can't add arguments either).
ssh://: Commands are NAKed in non-standard ways (e.g. Gitolite vs. shell) and one can't add arguments.
file://: That's easy.
CONNECT: The helper needs to be told that v2 is supported (helper doing the rest).
Maybe with git://, one could hack the stuff in similar way as virtual hosting was added. But that won't work with SSH (nor one can use environment with SSH).
:-/
[1] And there is no guarantee that the server end of git:// is git-daemon. There's at least one git:// server implemetation that responds to unknown commands by ERR packet followed by hangup.
-Ilari