X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=http-fetch.c;h=435317342be0d31088f5aae5b337e090b40199b5;hb=f98d863d2122e1b8781dfb9889df98876a26f315;hp=53a7dbf40c0e0993da2994cb1216e6b8a0b7fc66;hpb=e388ab74dbaea5cdbf07b175be8d6980579392f4;p=git.git diff --git a/http-fetch.c b/http-fetch.c index 53a7dbf4..43531734 100644 --- a/http-fetch.c +++ b/http-fetch.c @@ -637,10 +637,18 @@ static int fetch_indices(struct alt_base *repo) if (start_active_slot(slot)) { run_active_slot(slot); if (slot->curl_result != CURLE_OK) { - free(buffer.buffer); - return error("%s", curl_errorstr); + if (slot->http_code == 404) { + repo->got_indices = 1; + free(buffer.buffer); + return 0; + } else { + repo->got_indices = 0; + free(buffer.buffer); + return error("%s", curl_errorstr); + } } } else { + repo->got_indices = 0; free(buffer.buffer); return error("Unable to start request"); }