threads / discuss / 12349

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 27, 2008 and Feb 28, 2008.

replies: 1people: 2as markdown or json

ken.fuchs@bench.com· Feb 27, 2008, 23:43 UTC · lore
Show 6 quoted lines
> > $ 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· Feb 28, 2008, 00:10 UTC · re: ken.fuchs@bench.com · lore
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

← back to recent threads