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