summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-12-19 14:45:32 -0800
committerJunio C Hamano <gitster@pobox.com>2016-12-19 14:45:32 -0800
commitda72ee87fb5f27f44b1b48a18765ab1c6280f070 (patch)
treef9af3a68640a73ca1102e43ef64b3cd98f2e8ce7 /http.c
parent8a2882f23ecce3a8742743555a408e508d4db806 (diff)
parent3680f16f9d6832dc78c6b80f1e8a546385d946f9 (diff)
downloadgit-da72ee87fb5f27f44b1b48a18765ab1c6280f070.tar.gz
Merge branch 'jk/http-walker-limit-redirect'
Update the error messages from the dumb-http client when it fails to obtain loose objects; we used to give sensible error message only upon 404 but we now forbid unexpected redirects that needs to be reported with something sensible. * jk/http-walker-limit-redirect: http-walker: complain about non-404 loose object errors
Diffstat (limited to 'http.c')
-rw-r--r--http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/http.c b/http.c
index c4e14c0af1..051fe6e5ab 100644
--- a/http.c
+++ b/http.c
@@ -2058,7 +2058,7 @@ static size_t fwrite_sha1_file(char *ptr, size_t eltsize, size_t nmemb,
if (c != CURLE_OK)
die("BUG: curl_easy_getinfo for HTTP code failed: %s",
curl_easy_strerror(c));
- if (slot->http_code >= 400)
+ if (slot->http_code >= 300)
return size;
}