]> git.ipfire.org Git - thirdparty/git.git/commit - git-cvsimport.perl
git-cvsimport: add support for CVS pserver method HTTP/1.x proxying
authorIñaki Arenaza <iarenuno@eteo.mondragon.edu>
Wed, 22 Nov 2006 22:26:57 +0000 (23:26 +0100)
committerJunio C Hamano <junkio@cox.net>
Fri, 24 Nov 2006 10:21:29 +0000 (02:21 -0800)
commit73bcf53342f16a66ae4e02ed50a08bd34d846bfb
tree659a52a2496a4045aff8911d136f5379e5e58724
parent7182135189d1942d8538a0d0c17fc79f5cb82c71
git-cvsimport: add support for CVS pserver method HTTP/1.x proxying

This patch adds support for 'proxy' and 'proxyport' connection options
when using the pserver method for the CVS Root.

It has been tested with a Squid 2.5.x proxy server.

Quoting from the CVS info manual:

     The `gserver' and `pserver' connection methods all accept optional
  method options, specified as part of the METHOD string, like so:

       :METHOD[;OPTION=ARG...]:

     Currently, the only two valid connection options are `proxy', which
  takes a hostname as an argument, and `proxyport', which takes a port
  number as an argument.  These options can be used to connect via an HTTP
  tunnel style web proxy.  For example, to connect pserver via a web proxy
  at www.myproxy.net and port 8000, you would use a method of:

       :pserver;proxy=www.myproxy.net;proxyport=8000:

     *NOTE: The rest of the connection string is required to connect to
  the server as noted in the upcoming sections on password authentication,
  gserver and kserver.  The example above would only modify the METHOD
  portion of the repository name.*

     PROXY must be supplied to connect to a CVS server via a proxy
  server, but PROXYPORT will default to port 8080 if not supplied.
  PROXYPORT may also be set via the CVS_PROXY_PORT environment variable.

Signed-off-by: Iñaki Arenaza <iarenuno@eteo.mondragon.edu>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-cvsimport.perl