File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -478,6 +478,17 @@ static CURL *get_curl_handle(void)
478
478
479
479
if (curl_http_proxy ) {
480
480
curl_easy_setopt (result , CURLOPT_PROXY , curl_http_proxy );
481
+ #if LIBCURL_VERSION_NUM >= 0x071800
482
+ if (starts_with (curl_http_proxy , "socks5" ))
483
+ curl_easy_setopt (result ,
484
+ CURLOPT_PROXYTYPE , CURLPROXY_SOCKS5 );
485
+ else if (starts_with (curl_http_proxy , "socks4a" ))
486
+ curl_easy_setopt (result ,
487
+ CURLOPT_PROXYTYPE , CURLPROXY_SOCKS4A );
488
+ else if (starts_with (curl_http_proxy , "socks" ))
489
+ curl_easy_setopt (result ,
490
+ CURLOPT_PROXYTYPE , CURLPROXY_SOCKS4 );
491
+ #endif
481
492
}
482
493
#if LIBCURL_VERSION_NUM >= 0x070a07
483
494
curl_easy_setopt (result , CURLOPT_PROXYAUTH , CURLAUTH_ANY );
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