• J
    fix http auth with multiple curl handles · dfa1725a
    Jeff King 提交于
    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: NClemens Buchacher <drizzd@aon.at>
    Signed-off-by: NJunio C Hamano <gitster@pobox.com>
    dfa1725a
http.c 32.1 KB