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 @@ -383,6 +383,17 @@ static CURL *get_curl_handle(void)
383
383
if (curl_http_proxy ) {
384
384
curl_easy_setopt (result , CURLOPT_PROXY , curl_http_proxy );
385
385
curl_easy_setopt (result , CURLOPT_PROXYAUTH , CURLAUTH_ANY );
386
+ #if LIBCURL_VERSION_NUM >= 0x071800
387
+ if (starts_with (curl_http_proxy , "socks5" ))
388
+ curl_easy_setopt (result ,
389
+ CURLOPT_PROXYTYPE , CURLPROXY_SOCKS5 );
390
+ else if (starts_with (curl_http_proxy , "socks4a" ))
391
+ curl_easy_setopt (result ,
392
+ CURLOPT_PROXYTYPE , CURLPROXY_SOCKS4A );
393
+ else if (starts_with (curl_http_proxy , "socks" ))
394
+ curl_easy_setopt (result ,
395
+ CURLOPT_PROXYTYPE , CURLPROXY_SOCKS4 );
396
+ #endif
386
397
}
387
398
388
399
set_curl_keepalive (result );
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