Skip to content

Commit 3cd528c

Browse files
committed
Merge 'non-win-fixes' into HEAD
2 parents bad4e6e + 659668e commit 3cd528c

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

http.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,17 @@ static CURL *get_curl_handle(void)
420420
curl_easy_setopt(result, CURLOPT_PROXY, curl_http_proxy);
421421
#if LIBCURL_VERSION_NUM >= 0x070a07
422422
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);
423434
#endif
424435
}
425436

imap-send.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,11 +1414,15 @@ static CURL *setup_curl(struct imap_server_conf *srvc)
14141414
curl_easy_setopt(curl, CURLOPT_PORT, server.port);
14151415

14161416
if (server.auth_method) {
1417+
#if LIBCURL_VERSION_NUM < 0x072200
1418+
warning("No LOGIN_OPTIONS support in this cURL version");
1419+
#else
14171420
struct strbuf auth = STRBUF_INIT;
14181421
strbuf_addstr(&auth, "AUTH=");
14191422
strbuf_addstr(&auth, server.auth_method);
14201423
curl_easy_setopt(curl, CURLOPT_LOGIN_OPTIONS, auth.buf);
14211424
strbuf_release(&auth);
1425+
#endif
14221426
}
14231427

14241428
if (!server.use_ssl)

wrap-for-bin.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,11 @@ GIT_TEXTDOMAINDIR='@@BUILD_DIR@@/po/build/locale'
1919
PATH='@@BUILD_DIR@@/bin-wrappers:'"$PATH"
2020
export GIT_EXEC_PATH GITPERLLIB PATH GIT_TEXTDOMAINDIR
2121

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+
2229
exec "${GIT_EXEC_PATH}/@@PROG@@" "$@"

0 commit comments

Comments
 (0)