diff options
| author | Junio C Hamano <gitster@pobox.com> | 2020-06-08 18:06:32 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2020-06-08 18:06:32 -0700 |
| commit | 0b925a469eb903bfcfba73e6f1ff7e32f6190e62 (patch) | |
| tree | d314cd780bf6d53debd43cee048446705721a9aa /http.c | |
| parent | 8d04c98866eb7a1fc85cea6dba65f4b0ab1436bc (diff) | |
| parent | 7167a62b9e2f648adc11411446f876f2458722a5 (diff) | |
| download | git-0b925a469eb903bfcfba73e6f1ff7e32f6190e62.tar.xz | |
Merge branch 'jt/curl-verbose-on-trace-curl'
Rewrite support for GIT_CURL_VERBOSE in terms of GIT_TRACE_CURL.
Looking good.
* jt/curl-verbose-on-trace-curl:
http, imap-send: stop using CURLOPT_VERBOSE
t5551: test that GIT_TRACE_CURL redacts password
Diffstat (limited to 'http.c')
| -rw-r--r-- | http.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -804,6 +804,12 @@ static int curl_trace(CURL *handle, curl_infotype type, char *data, size_t size, return 0; } +void http_trace_curl_no_data(void) +{ + trace_override_envvar(&trace_curl, "1"); + trace_curl_data = 0; +} + void setup_curl_trace(CURL *handle) { if (!trace_want(&trace_curl)) @@ -993,7 +999,7 @@ static CURL *get_curl_handle(void) warning(_("Protocol restrictions not supported with cURL < 7.19.4")); #endif if (getenv("GIT_CURL_VERBOSE")) - curl_easy_setopt(result, CURLOPT_VERBOSE, 1L); + http_trace_curl_no_data(); setup_curl_trace(result); if (getenv("GIT_TRACE_CURL_NO_DATA")) trace_curl_data = 0; |
