Re: [git-users] Git doesn't work with Sock5 proxy on MAC

2013-01-11 Thread Konstantin Khomoutov
On Thu, 10 Jan 2013 22:14:10 -0800 (PST)
Herry Wang  wrote:

[...]
> git clone http://herry@stash.somesite/a.git
> Cloning into 'a'...
> error: Empty reply from server while accessing 
> git/info/refs?service=git-upload-pack
> fatal: HTTP request failed
[...]

Bug reports should be directed to the main Git list (for developers)
which is git at vger.kernel.org -- see [1] for more info.

1. http://vger.kernel.org/vger-lists.html#git

-- 




[git-users] Git doesn't work with Sock5 proxy on MAC

2013-01-10 Thread Herry Wang
OS:

Darwin ... 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 
2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64

Git: version: (via homebrew)

 git --version
git version 1.8.0

curl version:

curl --version
curl 7.28.1 (x86_64-apple-darwin11.4.2)


git clone http://herry@stash.somesite/a.git
Cloning into 'a'...
error: Empty reply from server while accessing 
git/info/refs?service=git-upload-pack
fatal: HTTP request failed

i tried export http_proxy=socks5://ip:port, all_proxy=socks5://, neither of 
them works.
I also configure socks proxy in ~/.curlrc,  git is not working well. 
However, curl is doing well with curlrc config.
>From the trace, looks like git is just put the http request via proxy host. 
But according with socks protocol, it should have some headers.


Interesting thing is, http_proxy way is working perfectly on my Ubuntu 
enviroment. 


Thanks

--