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

Re: git push refspec URL weirdness

From
Junio C Hamano <junkio@cox.net>
Date
Mar 25, 2006, 06:22 UTC
Message-ID
<7vslp7xcvm.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<E1FMzfr-0006xT-Uq@jdl.com>
Jon Loeliger <jdl@jdl.com> writes:
Show 9 quoted lines
> So Junio suggested taking advantage of the fact that the
> default refspec uses git+ssh and use this instead:
>
>     URL: www.example.com:/pub/software/linux-2.6-86xx.git
>     Push: my-branch:public-branch
>
> Which just worked.
>
> So this is either a bug report or google food. :-)

Actually, I did not suggest it as a workaround (I've never used git+ssh:// URL myself -- I'm old fashioned -- and always used host:path syntax). If git+ssh:// insists on the fixed port, it surely is broken, but I do not see how it would make a difference. In either case, connect.c::git_connect() goes PROTO_SSH codepath which never opens a tcp connection itself -- it just calls the same "ssh" command.

Previous: Jon Loeliger
Message 2 of 2 in “git push refspec URL weirdness”
  1. Jon LoeligerMar 25, 2006
  2. Junio C HamanoMar 25, 2006

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.