Skip to content

Commit 1c2f357

Browse files
committed
Merge 'non-win-fixes' into HEAD
2 parents 486bd90 + c47b590 commit 1c2f357

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
@@ -383,6 +383,17 @@ static CURL *get_curl_handle(void)
383383
if (curl_http_proxy) {
384384
curl_easy_setopt(result, CURLOPT_PROXY, curl_http_proxy);
385385
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
386397
}
387398

388399
set_curl_keepalive(result);

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)