From: Stefan Näwe Date: Wed, 04 Feb 2009 21:02:55 GMT Subject: Re: [PATCH v2] urls.txt: document optional port specification in git URLS Message-ID: In-Reply-To: <7vvdrpore9.fsf@gitster.siamese.dyndns.org> Junio C Hamano pobox.com> writes: > > Stefan Naewe 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