diff options
-rw-r--r-- | http-fetch.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/http-fetch.c b/http-fetch.c index 1ee1df20d6..a1b03cd9c8 100644 --- a/http-fetch.c +++ b/http-fetch.c @@ -1095,9 +1095,12 @@ static int fetch_object(struct alt_base *repo, unsigned char *sha1) } if (request->curl_result != CURLE_OK && request->http_code != 416) { - ret = error("%s (curl_result = %d, http_code = %ld, sha1 = %s)", - request->errorstr, request->curl_result, - request->http_code, hex); + if (request->http_code == 404) + ret = -1; /* Be silent, it is probably in a pack. */ + else + ret = error("%s (curl_result = %d, http_code = %ld, sha1 = %s)", + request->errorstr, request->curl_result, + request->http_code, hex); release_request(request); return ret; } |