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

Re: Bug: [hostname:port]:repo.git notation no longer works (for ssh)

From
Duy Nguyen <pclouds@gmail.com>
Date
Sep 27, 2013, 13:48 UTC
Message-ID
<CACsJy8CURVVpdGGJgpG2abJ3yo+fEnbeXS1Dug4zPCJ=zMLxmQ@mail.gmail.com>
In-Reply-To
<524547E8.4070406@atlas-elektronik.com>

On Fri, Sep 27, 2013 at 3:55 PM, Stefan Näwe <stefan.naewe@atlas-elektronik.com> wrote:

Show 19 quoted lines
>>     [remote "exp"]
>>             url = [localhost:2223]:blink.git
>>             fetch = +refs/heads/*:refs/remotes/exp/*
>>
>> However, now I get this message:
>>
>>     $ git fetch exp
>>     fatal: ':blink.git' does not appear to be a git repository
>>     fatal: Could not read from remote repository.
>
> I wonder why that worked (especially the "[...]") at all ?
> I thought specifying a port for a SSH connection was always only
> possible when using
>
>        ssh://user@host:port/path/to/repo.git
> - or -
>        ssh://user@host:port/~user/path/to/repo.git
>
> At least that's what I always read out of the git-clone man page.

[] is used to wrap ipv6 and because we don't know if it's actually ipv6 or v4, we accept it in both cases, so [abc] can be used in place "host" above. No [host:port]:path won't work because "host:port" is considered host name. But [host or ip]:path may work (that is after I fix my bug).

-- 
Duy
Previous: Stefan NäweNext: Phil Hord
Message 4 of 6 in “Bug: [hostname:port]:repo.git notation no longer works (for ssh)”
  1. Morten StenshorneSep 27, 2013
  2. Duy NguyenSep 27, 2013
  3. Stefan NäweSep 27, 2013
  4. Duy NguyenSep 27, 2013
  5. Phil HordSep 27, 2013
  6. Morten StenshorneSep 27, 2013

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.