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

Re: [PATCH v2] urls.txt: document optional port specification in git URLS

From
Stefan Näwe <stefan.naewe+git@gmail.com>
Date
Feb 4, 2009, 21:02 UTC
Message-ID
<loom.20090204T205910-325@post.gmane.org>
In-Reply-To
<7vvdrpore9.fsf@gitster.siamese.dyndns.org>
Junio C Hamano <gitster <at> pobox.com> writes:
Show 20 quoted lines
> 
> Stefan Naewe <stefan.naewe <at> googlemail.com> writes:
> 
> >  ===============================================================
> >  - rsync://host.xz/path/to/repo.git/
> > -- http://host.xz/path/to/repo.git/
> > -- https://host.xz/path/to/repo.git/
> > -- git://host.xz/path/to/repo.git/
> > -- git://host.xz/~user/path/to/repo.git/
> > +- http://host.xz{startsb}:port{endsb}/path/to/repo.git/
> > +- https://host.xz{startsb}:port{endsb}/path/to/repo.git/
> > +- git://host.xz{startsb}:port{endsb}/path/to/repo.git/
> > +- git://host.xz{startsb}:port{endsb}/~user/path/to/repo.git/
> >  - ssh://{startsb}user@{endsb}host.xz{startsb}:port{endsb}/path/to/repo.git/
> >  - ssh://{startsb}user@{endsb}host.xz/path/to/repo.git/
> >  - ssh://{startsb}user@{endsb}host.xz/~user/path/to/repo.git/
> 
> Do you know if these port specifications do actually work?  Just double
> checking.
> 
A quick test with 'netcat':
In xterm 1:
$ nc -l -p 8080
In xterm 2:
$ git clone http://localhost:8080/foo/bar/baz.git
Back in xterm 1 I get:
GET /foo/bar/baz.git/info/refs HTTP/1.1
User-Agent: git/1.6.1.2
Host: localhost:8080
Accept: */*
More testing needed ?

Regards, Stefan

Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 9 in “urls.txt: document optional port specification in git URLS”
  1. urls.txt: document optional port specification in git URLSStefan Naewe, Feb 4, 2009
  2. Junio C HamanoFeb 4, 2009
  3. urls.txt: document optional port specification in git URLSStefan Naewe, Feb 4, 2009
  4. Junio C HamanoFeb 4, 2009
  5. Stefan NäweFeb 4, 2009
  6. Junio C HamanoFeb 4, 2009
  7. Nicolas SebrechtFeb 5, 2009
  8. Marius Storm-OlsenFeb 5, 2009
  9. Stefan NaeweFeb 5, 2009

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.