Besides, we have already called easy_setopt with the option before coming
to this function if it was available, so there is no need to repeat it
here.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
static void init_curl_http_auth(CURL *result)
{
- if (!user_name)
- curl_easy_setopt(result, CURLOPT_NETRC, CURL_NETRC_OPTIONAL);
- else {
+ if (user_name) {
struct strbuf up = STRBUF_INIT;
if (!user_pass)
user_pass = xstrdup(getpass("Password: "));