Skip to content

Commit

Permalink
Merge 'non-win-fixes' into HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
dscho committed Mar 6, 2015
2 parents bad4e6e + 659668e commit 3cd528c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions http.c
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,17 @@ static CURL *get_curl_handle(void)
curl_easy_setopt(result, CURLOPT_PROXY, curl_http_proxy);
#if LIBCURL_VERSION_NUM >= 0x070a07
curl_easy_setopt(result, CURLOPT_PROXYAUTH, CURLAUTH_ANY);
#endif
#if LIBCURL_VERSION_NUM >= 0x071800
if (starts_with(curl_http_proxy, "socks5"))
curl_easy_setopt(result,
CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
else if (starts_with(curl_http_proxy, "socks4a"))
curl_easy_setopt(result,
CURLOPT_PROXYTYPE, CURLPROXY_SOCKS4A);
else if (starts_with(curl_http_proxy, "socks"))
curl_easy_setopt(result,
CURLOPT_PROXYTYPE, CURLPROXY_SOCKS4);
#endif
}

Expand Down
4 changes: 4 additions & 0 deletions imap-send.c
Original file line number Diff line number Diff line change
Expand Up @@ -1414,11 +1414,15 @@ static CURL *setup_curl(struct imap_server_conf *srvc)
curl_easy_setopt(curl, CURLOPT_PORT, server.port);

if (server.auth_method) {
#if LIBCURL_VERSION_NUM < 0x072200
warning("No LOGIN_OPTIONS support in this cURL version");
#else
struct strbuf auth = STRBUF_INIT;
strbuf_addstr(&auth, "AUTH=");
strbuf_addstr(&auth, server.auth_method);
curl_easy_setopt(curl, CURLOPT_LOGIN_OPTIONS, auth.buf);
strbuf_release(&auth);
#endif
}

if (!server.use_ssl)
Expand Down
7 changes: 7 additions & 0 deletions wrap-for-bin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,11 @@ GIT_TEXTDOMAINDIR='@@BUILD_DIR@@/po/build/locale'
PATH='@@BUILD_DIR@@/bin-wrappers:'"$PATH"
export GIT_EXEC_PATH GITPERLLIB PATH GIT_TEXTDOMAINDIR

if test -n "$TEST_GDB_GIT"
then
exec gdb -args "${GIT_EXEC_PATH}/@@PROG@@" "$@"
echo "Could not run gdb -args ${GIT_EXEC_PATH}/@@PROG@@ $*" >&2
exit 1
fi

exec "${GIT_EXEC_PATH}/@@PROG@@" "$@"

0 comments on commit 3cd528c

Please sign in to comment.