Skip to content

Commit cd69ec8

Browse files
committed
Merge branch 'jc/http-curlver-warnings'
Warning message fix. * jc/http-curlver-warnings: http: give curl version warnings consistently
2 parents d7b1859 + d6b1d3b commit cd69ec8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

http.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -834,8 +834,7 @@ static CURL *get_curl_handle(void)
834834
#if LIBCURL_VERSION_NUM >= 0x072c00
835835
curl_easy_setopt(result, CURLOPT_SSL_OPTIONS, CURLSSLOPT_NO_REVOKE);
836836
#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"));
839838
#endif
840839
}
841840

@@ -908,8 +907,7 @@ static CURL *get_curl_handle(void)
908907
curl_easy_setopt(result, CURLOPT_PROTOCOLS,
909908
get_curl_allowed_protocols(-1));
910909
#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"));
913911
#endif
914912
if (getenv("GIT_CURL_VERBOSE"))
915913
curl_easy_setopt(result, CURLOPT_VERBOSE, 1L);

0 commit comments

Comments
 (0)