git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[BUG] url schemes should be case-insensitive

From
Jeff King <peff@peff.net>
Date
Jun 24, 2018, 08:56 UTC
Message-ID
<20180624085622.GA28575@sigill.intra.peff.net>
We seem to match url schemes case-sensitively:
  $ git clone SSH://example.com/repo.git
  Cloning into 'repo'...
  fatal: Unable to find remote helper for 'SSH'

whereas rfc3986 is clear that the scheme portion is case-insensitive. We probably ought to match at least our internal ones with strcasecmp. Possibly we should also normalize external helpers (so "FOO://bar" would always call git-remote-foo, never git-remote-FOO).

We could probably also give an advise() message in the above output, suggesting that the problem is likely one of:

  1. They misspelled the scheme.
  2. They need to install the appropriate helper.

This may be a good topic for somebody looking for low-hanging fruit to get involved in development (I'd maybe call it a #leftoverbits, but since I didn't start on it, I'm not sure if it counts as "left over" ;)).

-Peff
Next: Junio C Hamano
Message 1 of 6 in “[BUG] url schemes should be case-insensitive”
  1. Jeff KingJun 24, 2018
  2. Junio C HamanoJun 25, 2018
  3. Jeff KingJun 26, 2018
  4. Junio C HamanoJun 26, 2018
  5. Jeff KingJun 26, 2018
  6. Jeff KingJun 26, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.