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

Re: FEATURE REQUEST: Allow SSH style URLS (with extra colon)

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 30, 2010, 22:30 UTC
Message-ID
<7v4om3jker.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20100130222157.GI9553@machine.or.cz>
Petr Baudis <pasky@suse.cz> writes:
Show 10 quoted lines
> On Sat, Jan 30, 2010 at 06:57:56PM +0200, Jari Aalto wrote:
>> 
>> An example:
>> 
>>     ssh://foo@examplecom:/path
>>                         |
>>                         Allowed
>
> But that's not an URL anymore. If you want to use ssh pathspec, write it
> as a pathspec, not an URL. Just foo@example.com:/path works fine. ;-)
The way URLs are defined is:
	<scheme>:<scheme-specific-part>

so if somebody defines his "ssh" scheme to allow any random garbage, its their URL and you cannot say "that is not an URL", unless you qualify your statement with "I want to keep ssh scheme consistent with the common internet scheme syntax".

As I think "ssh://..." is simply moronic, I don't even care to "keep" the scheme specific part consistent with the common internet scheme syntax to begin with. I agree with your conclusion, though ;-)

scp syntax works just fine.
Previous: Petr Baudis
Message 4 of 4 in “FEATURE REQUEST: Allow SSH style URLS (with extra colon)”
  1. Jari AaltoJan 30, 2010
  2. Ilari LiusvaaraJan 30, 2010
  3. Petr BaudisJan 30, 2010
  4. Junio C HamanoJan 30, 2010

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.