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

Broken handling of URL with literal IPv6 address

From
CTChristian Taube <lists@hcf.yourweb.de>
Date
Sep 18, 2014, 11:29 UTC
Message-ID
<2004412952.561305.1411039751559.open-xchange@app02.ox.hosteurope.de>
Hello,
I was sent here from the IRC channel.
Using git 2.1.0, the command
  git clone ssh://[2001:db8::1]/repo.git
succeeds, but adding a username to the URL like this
  git clone ssh://user@[2001:db8::1]/repo.git
fails with an invalid hostname message:

Cloning into 'repo.git'... ssh: Could not resolve hostname [2001: Name or service not known fatal: Could not read from remote repository.

I found this workaround:
  git clone ssh://[user@2001:db8::1]/repo.git
but this seems to be contrary to the definition of URLs in RFC 3986.
http://tools.ietf.org/html/rfc3986
Please have a look at this. Thank you!

-- Christian Taube

Next: Torsten Bögershausen
Message 1 of 2 in “Broken handling of URL with literal IPv6 address”
  1. Christian TaubeSep 18, 2014
  2. Torsten BögershausenSep 18, 2014

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.