diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-11-02 16:53:59 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-11-02 16:53:59 +0100 |
commit | cd69ec8cde54af1817630331fc441f493866f0d4 (patch) | |
tree | 491b6c63179560f899b96e9438899819394f1366 /http.c | |
parent | Merge branch 'js/mingw-http-ssl' (diff) | |
parent | http: give curl version warnings consistently (diff) | |
download | git-cd69ec8cde54af1817630331fc441f493866f0d4.tar.xz git-cd69ec8cde54af1817630331fc441f493866f0d4.zip |
Merge branch 'jc/http-curlver-warnings'
Warning message fix.
* jc/http-curlver-warnings:
http: give curl version warnings consistently
Diffstat (limited to 'http.c')
-rw-r--r-- | http.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -834,8 +834,7 @@ static CURL *get_curl_handle(void) #if LIBCURL_VERSION_NUM >= 0x072c00 curl_easy_setopt(result, CURLOPT_SSL_OPTIONS, CURLSSLOPT_NO_REVOKE); #else - warning("CURLSSLOPT_NO_REVOKE not applied to curl SSL options because\n" - "your curl version is too old (< 7.44.0)"); + warning(_("CURLSSLOPT_NO_REVOKE not suported with cURL < 7.44.0")); #endif } @@ -908,8 +907,7 @@ static CURL *get_curl_handle(void) curl_easy_setopt(result, CURLOPT_PROTOCOLS, get_curl_allowed_protocols(-1)); #else - warning("protocol restrictions not applied to curl redirects because\n" - "your curl version is too old (>= 7.19.4)"); + warning(_("Protocol restrictions not supported with cURL < 7.19.4")); #endif if (getenv("GIT_CURL_VERBOSE")) curl_easy_setopt(result, CURLOPT_VERBOSE, 1L); |