Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-10-11 20:21:47 +0300
committerJunio C Hamano <gitster@pobox.com>2021-10-11 20:21:47 +0300
commit97492aacffee48dd217164f6af4b9d1db1aa6646 (patch)
tree3dc52dd1021a58845040a6f579c58fda522f6d5a /remote-curl.c
parent4ae0bc75f97bffec786460b5eaace29d2935487b (diff)
parent3e8084f1884ffea25b80f76b7a1bd0e5b3200c8a (diff)
Merge branch 'ab/http-pinned-public-key-mismatch'
HTTPS error handling updates. * ab/http-pinned-public-key-mismatch: http: check CURLE_SSL_PINNEDPUBKEYNOTMATCH when emitting errors
Diffstat (limited to 'remote-curl.c')
-rw-r--r--remote-curl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/remote-curl.c b/remote-curl.c
index 3f5688e426..5975103b96 100644
--- a/remote-curl.c
+++ b/remote-curl.c
@@ -499,6 +499,10 @@ static struct discovery *discover_refs(const char *service, int for_push)
show_http_message(&type, &charset, &buffer);
die(_("Authentication failed for '%s'"),
transport_anonymize_url(url.buf));
+ case HTTP_NOMATCHPUBLICKEY:
+ show_http_message(&type, &charset, &buffer);
+ die(_("unable to access '%s' with http.pinnedPubkey configuration: %s"),
+ transport_anonymize_url(url.buf), curl_errorstr);
default:
show_http_message(&type, &charset, &buffer);
die(_("unable to access '%s': %s"),