summaryrefslogtreecommitdiff
path: root/remote-curl.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-10-11 17:21:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-10-11 17:21:47 (GMT)
commit97492aacffee48dd217164f6af4b9d1db1aa6646 (patch)
tree3dc52dd1021a58845040a6f579c58fda522f6d5a /remote-curl.c
parent4ae0bc75f97bffec786460b5eaace29d2935487b (diff)
parent3e8084f1884ffea25b80f76b7a1bd0e5b3200c8a (diff)
downloadgit-97492aacffee48dd217164f6af4b9d1db1aa6646.zip
git-97492aacffee48dd217164f6af4b9d1db1aa6646.tar.gz
git-97492aacffee48dd217164f6af4b9d1db1aa6646.tar.bz2
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 3f5688e..5975103 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"),