summaryrefslogtreecommitdiff
path: root/t/t5515
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2012-04-10 11:53:40 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-04-10 09:12:13 -0700
commitdfa1725a3ec57098637b698ffc2b2e2459acc518 (patch)
treecd60c4d5053081b20956bc14158b402ec60028c6 /t/t5515
parenthttp auth fails with multiple curl handles (diff)
downloadtgif-dfa1725a3ec57098637b698ffc2b2e2459acc518.tar.xz
fix http auth with multiple curl handles
HTTP authentication is currently handled by get_refs and fetch_ref, but not by fetch_object, fetch_pack or fetch_alternates. In the single-threaded case, this is not an issue, since get_refs is always called first. It recognigzes the 401 and prompts the user for credentials, which will then be used subsequently. If the curl multi interface is used, however, only the multi handle used by get_refs will have credentials configured. Requests made by other handles fail with an authentication error. Fix this by setting CURLOPT_USERPWD whenever a slot is requested. Signed-off-by: Clemens Buchacher <drizzd@aon.at> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5515')
0 files changed, 0 insertions, 0 deletions