diff options
Diffstat (limited to 'remote-curl.c')
| -rw-r--r-- | remote-curl.c | 8 | 
1 files changed, 6 insertions, 2 deletions
diff --git a/remote-curl.c b/remote-curl.c index 598cff7cde..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"), @@ -1478,8 +1482,8 @@ int cmd_main(int argc, const char **argv)  	options.verbosity = 1;  	options.progress = !!isatty(2);  	options.thin = 1; -	string_list_init(&options.deepen_not, 1); -	string_list_init(&options.push_options, 1); +	string_list_init_dup(&options.deepen_not); +	string_list_init_dup(&options.push_options);  	/*  	 * Just report "remote-curl" here (folding all the various aliases  | 
