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

Re: git 2.3.4, ssh: Could not resolve hostname

From
Reid Woodbury Jr. <reidw@rawsound.com>
Date
Apr 2, 2015, 20:06 UTC
Message-ID
<5B043A67-E2FC-4F40-89C5-915B3D893459@rawsound.com>
In-Reply-To
<20150402193524.GA21555@peff.net>
Yup, removing the colon works in both 2.3.3 and 2.3.4. And I see that the manual doesn't use the colon! (eg. $ git clone ssh://user@server/project.git). The usage of the colon looks normal to my eyes because, for instance, SFTP uses it to set the path on login so this wasn't something I would have even considered. I'm sure I've seen it other places but I can't remember right now.
Thanks all for your time.
Show 22 quoted lines
> On Apr 2, 2015, at 12:35 PM, Jeff King <peff@peff.net> wrote:
> 
> On Thu, Apr 02, 2015 at 12:31:14PM -0700, Reid Woodbury Jr. wrote:
> 
>> Ah, understand. Here's my project URL for 'remote "origin"' with a
>> more meaningful representation of their internal FQDN:
>> 
>> 	url = ssh://rwoodbury@systemname.groupname.online:/opt/git/inventory.git
>> 
>> The "online" is their literal internal TLD.
> 
> Thanks. The problem is the extra ":" after "online"; your URL is
> malformed. You can just drop that colon entirely.
> 
> I do not think we need to support this syntax going forward (the colon
> is meaningless here, and our documentation is clear that it should go
> with a port number), but on the other hand, it might be nice to be more
> liberal, as we were in v2.3.3 and prior. I'll leave it to Torsten to see
> whether supporting that would hurt some of the other cases, or whether
> it would make the code too awkward.
> 
> -Peff
Previous: Jeff KingNext: Thomas Schneider
Message 8 of 16 in “git 2.3.4, ssh: Could not resolve hostname”
  1. Reid Woodbury Jr.Apr 2, 2015
  2. Jeff KingApr 2, 2015
  3. Reid Woodbury Jr.Apr 2, 2015
  4. Jeff KingApr 2, 2015
  5. Junio C HamanoApr 2, 2015
  6. Reid Woodbury Jr.Apr 2, 2015
  7. Jeff KingApr 2, 2015
  8. Reid Woodbury Jr.Apr 2, 2015
  9. Thomas SchneiderApr 2, 2015
  10. Torsten BögershausenApr 3, 2015
  11. brian m. carlsonApr 3, 2015
  12. Junio C HamanoApr 3, 2015
  13. Jeff KingApr 3, 2015
  14. Kyle J. McKayApr 3, 2015
  15. Reid Woodbury Jr.Apr 4, 2015
  16. Torsten BögershausenApr 4, 2015

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.