Re: Using socks proxy with git for http(s) transport

2013-03-06 Thread Jeff King
On Wed, Mar 06, 2013 at 09:12:30AM +0100, Yves Blusseau wrote: i have a socks proxy to access internet. I successed in configuring git (with GIT_PROXY_COMMAND) to use the socks proxy for GIT transport protocol. But how to use this socks proxy with git for HTTP(S) transport protocol ? Try:

Re: Using socks proxy with git for http(s) transport

2013-03-06 Thread Yves Blusseau
Try: git config --global http.proxy 'socks://yourhost:port' That will enable it for all git repositories on your machine. Git should also respect any environment variables that curl handles (because we use libcurl under the hood), if you prefer to set it up that way. See man curl for

Re: Using socks proxy with git for http(s) transport

2013-03-06 Thread Yves Blusseau
2013/3/6 Jeff King p...@peff.net: Try: git config --global http.proxy 'socks://yourhost:port' That will enable it for all git repositories on your machine. Git should also respect any environment variables that curl handles (because we use libcurl under the hood), if you prefer to set it

Re: Using socks proxy with git for http(s) transport

2013-03-06 Thread Jeff King
On Wed, Mar 06, 2013 at 10:21:42AM +0100, Yves Blusseau wrote: Try: git config --global http.proxy 'socks://yourhost:port' That will enable it for all git repositories on your machine. Git should also respect any environment variables that curl handles (because we use libcurl

Re: Using socks proxy with git for http(s) transport

2013-03-06 Thread Yves Blusseau
2013/3/6 Jeff King p...@peff.net: On Wed, Mar 06, 2013 at 10:21:42AM +0100, Yves Blusseau wrote: Try: git config --global http.proxy 'socks://yourhost:port' That will enable it for all git repositories on your machine. Git should also respect any environment variables that curl

Re: Using socks proxy with git for http(s) transport

2013-03-06 Thread Daniel Stenberg
On Wed, 6 Mar 2013, Yves Blusseau wrote: I have try with an old version of curl: 7.15.5 and with the latest in development curl 7.29.1-DEV. But it seem that git-remote-http is compile with the old one. libcurl 7.15.5 is over 6 years old. The support for socks[*]:// prefixes in proxy names