On 20 February 2013 17:24, <
eben...@gmail.com> wrote:
> I'm running into problems using git over an http proxy. I have configured
> my http.proxy variable and it seemingly works as I am able to do:
>
> git ls-remote
https://er...@git.assembla.com/myproj.git
>
> However, when I try git clone, it fails with the following error:
> error: RPC faifled; result=22, HTTP code = 0
> fatal: The remote end hung up unexpectedly
>
> I enabled GIT_CURL_VERBOSE and see that the connection is properly
> authenticating to the proxy with some requests, but skips/fails at the end,
> thus causing the error.
>
> < HTTP/1.1 407 Proxy Authentication Required
> < Proxy-Authenticate: NTLM
> * Authentication problem. Ignoring this.
> < Cache-Control: no-cache
> < Pragma: no-cache
> < Content-Type: text/html; charset=utf-8
> < Proxy-Connection: close
> < Set-Cookie: BCSI-CS-dcfa3879f83cfd49=2; Path=/
> < Connection: close
> < Content-Length: 3742
> <
> * Closing connection #0
> * HTTP response code said error
> error: RPC failed; result=22, HTTP code = 0
>
> I am not sure, however, to resolve the issue.
>
> I am using:
> git version 1.7.10.msysgit.1
> Windows 7 x64
>
The current release is 1.8.1 so first try upgrading to the latest
version. It's possible this was fixed when updating curl for 1.7.11.
If not I suggest trying to get curl working on its own first and then
seeing if git can work the same way. It may just be a matter of
setting your http_proxy and https_proxy environment variables to
include both the username and password required by the proxy (eg:
http_proxy=
http://DOMAIN\\USERNAME:sekret@localproxy:3128/ ). Although
I _think_ curl is supposed to pick that up for itself. Check curl -V
includes SSPI and NTLM in the features list.