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

2 messages from 2008-02-27 to 2008-02-28. Participants: ken.fuchs@bench.com, Johannes Schindelin.
Thread: https://gitlist.dev/t/12349

## ken.fuchs@bench.com, 2008-02-27 23:43

Subject: RE: FW: git via http protocol _and_ a proxy using NTLM authentication -- git 1.5.4.2 & curl 7.18.0
Message-ID: <AA28F077645B324881335614E4F7C428034C0A@win-ex01.bench.com>
URL: https://gitlist.dev/e/AA28F077645B324881335614E4F7C428034C0A%40win-ex01.bench.com

```
> > $ GIT_CURL_VERBOSE=1 git clone \
> >   http://www.kernel.org/pub/scm/git/git.git
> > Initialized empty Git repository in /mnt/s2u1/git/test-git/git/.git/
> > Cannot get remote repository information.
> > Perhaps git-update-server-info needs to be run there?
> > $
 
> 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?

Worse case, it should be possible to clone a repository on a
machine that doesn't require a proxy.  Convert the repository
into a tarball, copy it to the machine that requires a proxy
and change the config to work with the proxy, right?  At this
point, the git fetch command should work with the proxy, since
the local repository now has the required refs, right?

Thanks,

Ken Fuchs

```

## Johannes Schindelin, 2008-02-28 00:10

Subject: RE: FW: git via http protocol _and_ a proxy using NTLM authentication -- git 1.5.4.2 & curl 7.18.0
Message-ID: <alpine.LSU.1.00.0802280007390.22527@racer.site>
URL: https://gitlist.dev/e/alpine.LSU.1.00.0802280007390.22527%40racer.site
In-Reply-To: <AA28F077645B324881335614E4F7C428034C0A@win-ex01.bench.com>

```
Hi,

On Wed, 27 Feb 2008, Ken.Fuchs@bench.com wrote:

[Ken did not say who said this:]

> > 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=257a62710c0253d940a59b6fb2f371afa84dcf56

for a working example.

Hth,
Dscho

```
