X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=http-fetch.c;h=661c909152925ea3c9a375c13121200067e97cd2;hb=021b6e454944a4fba878651ebf9bfe0a3f6c3077;hp=cc7bd1f3676d58f62bb0c1e5d029d9273aecf2c0;hpb=d0740d92beb019a7b02678e5acea79c0ff67e3ee;p=git.git diff --git a/http-fetch.c b/http-fetch.c index cc7bd1f3..661c9091 100644 --- a/http-fetch.c +++ b/http-fetch.c @@ -1271,10 +1271,10 @@ int main(int argc, char **argv) if (pull(commit_id)) rc = 1; - curl_slist_free_all(no_pragma_header); - http_cleanup(); + curl_slist_free_all(no_pragma_header); + if (corrupt_object_found) { fprintf(stderr, "Some loose object were found to be corrupt, but they might be just\n"