threads / discuss / 12373

RE: FW: git via http protocol _and_ a proxy using NTLM authentication -- git 1.5.4.2 & curl 7.18.0

Subject: RE: FW: git via http protocol _and_ a proxy using NTLM authentication -- git 1.5.4.2 & curl 7.18.0

## tl;dr

2 messages between Feb 28, 2008 and Feb 29, 2008.

replies: 1people: 2as markdown or json

ken.fuchs@bench.com· Feb 28, 2008, 22:04 UTC · lore
On Wed, 27 Feb 2008, Johannes Schindelin wrote:
> On Wed, 27 Feb 2008, Ken Fuchs wrote:
> 
> [Ken did not say who said this:]
Sorry, Mike Hommey wrote the following on 27 Feb 2008:
> > > git-clone is not a builtin yet. When it is (and a patch 
> > > has come for that), it will correctly use proxys.
> > 
> > Is there a work-around for cloning a git repository via a proxy?
Show 5 quoted lines
> Yes.
> 
> Just export "http_proxy".  AFAICT this works... See
> 
>

http://repo.or.cz/w/msysgit.git?a=commitdiff;h=257a62710c0253d940a59b6fb 2f371afa84dcf56

> for a working example.

Unfortunately, this will not work because "git clone" is implemented by git-clone.sh and has no support for dealing with proxies at all. Note that the example uses "git fetch" and not "get clone".

So it seems that git's http protocol via a proxy isn't completely supported. For example, "git fetch" works with a proxy, since it is implemented via a builtin (executable) which includes proxy support.

At least that is my understanding of Mike's comments above.

The only work-around for "git clone" that I'm aware of is a "proxy agent" that intercepts and modifies all Internet bound requests and responses so they go (transparently) through the proxy server rather than directly to the Internet. Thus, none of the clients being used need to be proxy aware, including "git clone" (or any git function for that matter).

However, I was looking for a different work-around for using "git clone" via http protocol and proxy (NTLM auth.), but there do not appear to be any.

Thanks,
Ken Fuchs
Johannes Schindelin· Feb 29, 2008, 00:59 UTC · re: ken.fuchs@bench.com · lore
Hi,
On Thu, 28 Feb 2008, Ken.Fuchs@bench.com wrote:
Show 26 quoted lines
> On Wed, 27 Feb 2008, Johannes Schindelin wrote:
> 
> > On Wed, 27 Feb 2008, Ken Fuchs wrote:
> > 
> > [Ken did not say who said this:]
> 
> Sorry, Mike Hommey wrote the following on 27 Feb 2008:
> 
> > > > git-clone is not a builtin yet. When it is (and a patch 
> > > > has come for that), it will correctly use proxys.
> > > 
> > > Is there a work-around for cloning a git repository via a proxy?
> 
> > Yes.
> > 
> > Just export "http_proxy".  AFAICT this works... See
> > 
> >
> http://repo.or.cz/w/msysgit.git?a=commitdiff;h=257a62710c0253d940a59b6fb
> 2f371afa84dcf56
> 
> > for a working example.
> 
> Unfortunately, this will not work because "git clone" is
> implemented by git-clone.sh and has no support for dealing
> with proxies at all.

I fail to see why git-clone.sh, which uses git http-fetch directly, should behave differently from git fetch, which uses git http-fetch directly.

I strongly suspect that you did not even try what I suggested.
> So it seems that git's http protocol via a proxy isn't completely 
> supported.

If that should really be the case, well, Git is a programmers' tool, so you should be perfectly able to find out what is happening _exactly_.

If not, well, I heard subversion and Mercurial have nice Windows support.

Ciao, Dscho

← back to recent threads