X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=remote-curl.c;h=0e720ee8bbf4cbc6a50336a1f1c93bfc63842fe3;hb=48015465287eb5a1240786ae5d0eba67903aa43e;hp=0aa4bfed309d6c439fac4ff2a0df6a468307e7bf;hpb=cf8ddeead9d0f5b13b268633ead6837803cd40de;p=git.git diff --git a/remote-curl.c b/remote-curl.c index 0aa4bfed3..0e720ee8b 100644 --- a/remote-curl.c +++ b/remote-curl.c @@ -115,7 +115,7 @@ static struct discovery* discover_refs(const char *service) http_ret = http_get_strbuf(refs_url, &buffer, HTTP_NO_CACHE); /* try again with "plain" url (no ? or & appended) */ - if (http_ret != HTTP_OK) { + if (http_ret != HTTP_OK && http_ret != HTTP_NOAUTH) { free(refs_url); strbuf_reset(&buffer); @@ -859,7 +859,7 @@ int main(int argc, const char **argv) url = strbuf_detach(&buf, NULL); - http_init(remote); + http_init(remote, url); do { if (strbuf_getline(&buf, stdin, '\n') == EOF) {