File tree 3 files changed +22
-0
lines changed
3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -420,6 +420,17 @@ static CURL *get_curl_handle(void)
420
420
curl_easy_setopt (result , CURLOPT_PROXY , curl_http_proxy );
421
421
#if LIBCURL_VERSION_NUM >= 0x070a07
422
422
curl_easy_setopt (result , CURLOPT_PROXYAUTH , CURLAUTH_ANY );
423
+ #endif
424
+ #if LIBCURL_VERSION_NUM >= 0x071800
425
+ if (starts_with (curl_http_proxy , "socks5" ))
426
+ curl_easy_setopt (result ,
427
+ CURLOPT_PROXYTYPE , CURLPROXY_SOCKS5 );
428
+ else if (starts_with (curl_http_proxy , "socks4a" ))
429
+ curl_easy_setopt (result ,
430
+ CURLOPT_PROXYTYPE , CURLPROXY_SOCKS4A );
431
+ else if (starts_with (curl_http_proxy , "socks" ))
432
+ curl_easy_setopt (result ,
433
+ CURLOPT_PROXYTYPE , CURLPROXY_SOCKS4 );
423
434
#endif
424
435
}
425
436
Original file line number Diff line number Diff line change @@ -1414,11 +1414,15 @@ static CURL *setup_curl(struct imap_server_conf *srvc)
1414
1414
curl_easy_setopt (curl , CURLOPT_PORT , server .port );
1415
1415
1416
1416
if (server .auth_method ) {
1417
+ #if LIBCURL_VERSION_NUM < 0x072200
1418
+ warning ("No LOGIN_OPTIONS support in this cURL version" );
1419
+ #else
1417
1420
struct strbuf auth = STRBUF_INIT ;
1418
1421
strbuf_addstr (& auth , "AUTH=" );
1419
1422
strbuf_addstr (& auth , server .auth_method );
1420
1423
curl_easy_setopt (curl , CURLOPT_LOGIN_OPTIONS , auth .buf );
1421
1424
strbuf_release (& auth );
1425
+ #endif
1422
1426
}
1423
1427
1424
1428
if (!server .use_ssl )
Original file line number Diff line number Diff line change @@ -19,4 +19,11 @@ GIT_TEXTDOMAINDIR='@@BUILD_DIR@@/po/build/locale'
19
19
PATH=' @@BUILD_DIR@@/bin-wrappers:' " $PATH "
20
20
export GIT_EXEC_PATH GITPERLLIB PATH GIT_TEXTDOMAINDIR
21
21
22
+ if test -n " $TEST_GDB_GIT "
23
+ then
24
+ exec gdb -args " ${GIT_EXEC_PATH} /@@PROG@@" " $@ "
25
+ echo " Could not run gdb -args ${GIT_EXEC_PATH} /@@PROG@@ $* " >&2
26
+ exit 1
27
+ fi
28
+
22
29
exec " ${GIT_EXEC_PATH} /@@PROG@@" " $@ "
You can’t perform that action at this time.
0 commit comments