http: give curl version warnings consistently
When a requested feature cannot be activated because the version of cURL library used to build Git with is too old, most of the codepaths give a warning like "$Feature is not supported with cURL < $Version", marked for l10n. A few of them, however, did not follow that pattern and said things like "$Feature is not activated, your curl version is too old (>= $Version)", and without marking them for l10n. Update these to match the style of the majority of warnings and mark them for l10n. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
Oct 25, 2018 at 12:22 UTC
d6b1d3b2d15b2bde48e6e64ba1aa4436a49ca2e2
1 file changed
+2
-4
http.c
+2
-4
@@ -834,8 +834,7 @@ static CURL *get_curl_handle(void)
834
#if LIBCURL_VERSION_NUM >= 0x072c00
835
curl_easy_setopt(result, CURLOPT_SSL_OPTIONS, CURLSSLOPT_NO_REVOKE);
836
#else
837
- warning("CURLSSLOPT_NO_REVOKE not applied to curl SSL options because\n"
838
- "your curl version is too old (< 7.44.0)");
837
+ warning(_("CURLSSLOPT_NO_REVOKE not suported with cURL < 7.44.0"));
838
#endif
839
}
840
@@ -908,8 +907,7 @@ static CURL *get_curl_handle(void)
907
curl_easy_setopt(result, CURLOPT_PROTOCOLS,
908
get_curl_allowed_protocols(-1));
909
#else
911
- warning("protocol restrictions not applied to curl redirects because\n"
912
- "your curl version is too old (>= 7.19.4)");
910
+ warning(_("Protocol restrictions not supported with cURL < 7.19.4"));
911
#endif
912
if (getenv("GIT_CURL_VERBOSE"))
913
curl_easy_setopt(result, CURLOPT_VERBOSE, 1L);