summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c33976c)
raw | patch | inline | side by side (parent: c33976c)
author | Junio C Hamano <gitster@pobox.com> | |
Fri, 13 Mar 2009 05:34:43 +0000 (22:34 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 13 Mar 2009 05:42:19 +0000 (22:42 -0700) |
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>
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>
http.c | patch | blob | history |
index b8f947e405fa95cdd422e67637b4f816354cf808..2fc55d671e2e8c5302eaf140f5ecff0b1d701cef 100644 (file)
--- a/http.c
+++ b/http.c
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: "));