Re: git://github.com/some/thing.git/?
- From
Jeff King <peff@peff.net>
- Date
- Mar 27, 2012, 16:33 UTC
- Message-ID
- <20120327163339.GA5941@sigill.intra.peff.net>
- In-Reply-To
- <7vpqbyjbbx.fsf@alter.siamese.dyndns.org>
On Tue, Mar 27, 2012 at 08:46:42AM -0700, Junio C Hamano wrote:
Show 11 quoted lines
> I just noticed that > > git ls-remote git://repo.or.cz/alt-git.git/ > > works, but neither of the following does: > > git ls-remote git://git://github.com/gitster/git.git/ > git ls-remote git://git://github.com/gitster/git/ > > It is just a minor irritation but it would be really nice if you can fix > it (please don't spend too much time on it if it is too involved, though).
Of course they don't work, they are malformed. :)
It took me a minute to figure it out, but I assume the interesting part is the trailing slash?
Interestingly, this does work for http URLs, because we do some normalization on the client side (and then append things like "info/refs"). I wonder if we should do similar normalization for other protocols.
Even with that, though, I think it would be good for the server to be liberal in what it accepts.
-Peff