Skip to content

Commit

Permalink
http.c: CURLOPT_NETRC_OPTIONAL is not available in ancient versions o…
Browse files Browse the repository at this point in the history
…f cURL

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>
  • Loading branch information
Junio C Hamano committed Mar 13, 2009
1 parent c33976c commit 750d930
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions http.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,7 @@ static int http_options(const char *var, const char *value, void *cb)

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: "));
Expand Down

0 comments on commit 750d930

Please sign in to comment.