X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=remote-curl.c;h=0e720ee8bbf4cbc6a50336a1f1c93bfc63842fe3;hb=963838402a94e7fcbd1a73019f80aff708972af8;hp=0aa4bfed309d6c439fac4ff2a0df6a468307e7bf;hpb=7f8a9387fd28b1cc4029bb8a8d66cd577d8dd1e3;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) {