summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a52b41b)
raw | patch | inline | side by side (parent: a52b41b)
author | barkalow@iabervon.org <barkalow@iabervon.org> | |
Sun, 31 Jul 2005 19:59:20 +0000 (15:59 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 31 Jul 2005 23:28:56 +0000 (16:28 -0700) |
Old libcurl has curl_easy_setopt(), and http-pull requires it; it just
doesn't have one of the options.
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
doesn't have one of the options.
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
http-pull.c | patch | blob | history |
diff --git a/http-pull.c b/http-pull.c
index da4d65ab9b95eaabdde8e6ddd308d7d8cd7e036b..38047e695b8dfabbdbe824486b1fae9ff5664ea4 100644 (file)
--- a/http-pull.c
+++ b/http-pull.c
#if LIBCURL_VERSION_NUM < 0x070800
#define curl_global_init(a) do { /* nothing */ } while(0)
#endif
-#if LIBCURL_VERSION_NUM < 0x070907
-#define curl_easy_setopt(a, b, c) do { /* nothing */ } while(0)
-#endif
static CURL *curl;
curl_ssl_verify = gitenv("GIT_SSL_NO_VERIFY") ? 0 : 1;
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, curl_ssl_verify);
+#if LIBCURL_VERSION_NUM >= 0x070907
curl_easy_setopt(curl, CURLOPT_NETRC, CURL_NETRC_OPTIONAL);
+#endif
base = url;