From: <Ken.Fuchs@bench.com>
To: <git@vger.kernel.org>
Subject: FW: git via http protocol _and_ a proxy using NTLM authentication -- git 1.5.4.2 & curl 7.18.0
Date: Tue, 26 Feb 2008 15:43:30 -0600 [thread overview]
Message-ID: <AA28F077645B324881335614E4F7C428034C00@win-ex01.bench.com> (raw)
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 reply other threads:[~2008-02-26 21:44 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-26 21:43 Ken.Fuchs [this message]
2008-02-26 22:01 ` FW: git via http protocol _and_ a proxy using NTLM authentication -- git 1.5.4.2 & curl 7.18.0 Daniel Stenberg
-- strict thread matches above, loose matches on Subject: below --
2008-02-26 23:46 Ken.Fuchs
2008-02-27 7:20 ` Mike Hommey
2008-02-27 7:29 ` Mike Hommey
2008-02-27 23:43 Ken.Fuchs
2008-02-28 0:10 ` Johannes Schindelin
2008-02-28 22:04 Ken.Fuchs
2008-02-29 0:59 ` Johannes Schindelin
2008-02-29 20:06 Ken.Fuchs
2008-02-29 20:32 ` Mike Hommey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AA28F077645B324881335614E4F7C428034C00@win-ex01.bench.com \
--to=ken.fuchs@bench.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).