File tree Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -386,6 +386,17 @@ static CURL *get_curl_handle(void)
386
386
if (curl_http_proxy ) {
387
387
curl_easy_setopt (result , CURLOPT_PROXY , curl_http_proxy );
388
388
curl_easy_setopt (result , CURLOPT_PROXYAUTH , CURLAUTH_ANY );
389
+ #if LIBCURL_VERSION_NUM >= 0x071800
390
+ if (starts_with (curl_http_proxy , "socks5" ))
391
+ curl_easy_setopt (result ,
392
+ CURLOPT_PROXYTYPE , CURLPROXY_SOCKS5 );
393
+ else if (starts_with (curl_http_proxy , "socks4a" ))
394
+ curl_easy_setopt (result ,
395
+ CURLOPT_PROXYTYPE , CURLPROXY_SOCKS4A );
396
+ else if (starts_with (curl_http_proxy , "socks" ))
397
+ curl_easy_setopt (result ,
398
+ CURLOPT_PROXYTYPE , CURLPROXY_SOCKS4 );
399
+ #endif
389
400
}
390
401
391
402
set_curl_keepalive (result );
Original file line number Diff line number Diff line change @@ -1422,11 +1422,15 @@ static CURL *setup_curl(struct imap_server_conf *srvc)
1422
1422
curl_easy_setopt (curl , CURLOPT_PORT , server .port );
1423
1423
1424
1424
if (server .auth_method ) {
1425
+ #if LIBCURL_VERSION_NUM < 0x072200
1426
+ warning ("No LOGIN_OPTIONS support in this cURL version" );
1427
+ #else
1425
1428
struct strbuf auth = STRBUF_INIT ;
1426
1429
strbuf_addstr (& auth , "AUTH=" );
1427
1430
strbuf_addstr (& auth , server .auth_method );
1428
1431
curl_easy_setopt (curl , CURLOPT_LOGIN_OPTIONS , auth .buf );
1429
1432
strbuf_release (& auth );
1433
+ #endif
1430
1434
}
1431
1435
1432
1436
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