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 - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html