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

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 26, 2008, 21:43 UTC
Message-ID
<AA28F077645B324881335614E4F7C428034C00@win-ex01.bench.com>

Need help to modify git to work with the http protocol _and_ a proxy using HTLM authentication.

--
The following changes were made to http.c (for NTLM authentication):
$ diff -c /mnt/nfs/git/git-1.5.4.2/http.c.orig \
    /mnt/nfs/git/git-1.5.4.2/http.c
--- 215,220 ----
--- 215,223 ----
        if (curl_http_proxy)
                curl_easy_setopt(result, CURLOPT_PROXY,
curl_http_proxy);
+       curl_easy_setopt(result, CURLOPT_PROXYAUTH,
(long)CURLAUTH_NTLM);
+       curl_easy_setopt(result, CURLOPT_PROXYUSERPWD,
+               "<user-id>:<password>");
+
        return result;
  }
$
--
git fetch _not_ working via an NTML proxy:
$ http_proxy=<proxy-domain>:<proxy-port> GIT_CURL_VERBOSE=1 \
    git fetch http://www.kernel.org/pub/scm/git/git.git

[A few paragraphs of proxy authentication debug output that BogoFilter apparently gives a high SPAM quotient to, so I've given up trying to include it.]

fatal: Couldn't find remote ref HEAD $

It seems that git fetch (via HTLM proxy) works until
> fatal: Couldn't find remote ref HEAD

git 1.5.4.2 dies on line 158 of builtin-fetch.c, because the call to get_remote_ref() in remote.c fails.

Does anything need to be changed in remote.c?
Any other suggestions?
Thanks,
Ken Fuchs
Next: Daniel Stenberg
Message 1 of 2 in “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 26, 2008
  2. Daniel StenbergFeb 26, 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.