git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Kken.fuchs@bench.com <ken.fuchs@bench.com>
Date
Feb 28, 2008, 22:04 UTC
Message-ID
<AA28F077645B324881335614E4F7C428034C11@win-ex01.bench.com>
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
Next: Johannes Schindelin
Message 1 of 2 in “RE: FW: git via http protocol _and_ a proxy using NTLM authentication -- git 1.5.4.2 & curl 7.18.0”
  1. ken.fuchs@bench.comFeb 28, 2008
  2. Johannes SchindelinFeb 29, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.