From: Nick Hengeveld Date: Fri, 30 Sep 2005 23:27:47 +0000 (-0700) Subject: [PATCH] HTTP partial transfer support fix. X-Git-Tag: v0.99.8~17 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4fa2197e614950279527b14825d1e9572454a48c;p=git.git [PATCH] HTTP partial transfer support fix. Don't unlink the temp file when an object transfer fails, so next attempt will pick up where the failed transfer left off Signed-off-by: Nick Hengeveld Signed-off-by: Junio C Hamano --- diff --git a/http-fetch.c b/http-fetch.c index e8ac9959f..71a8c60b5 100644 --- a/http-fetch.c +++ b/http-fetch.c @@ -550,7 +550,6 @@ static int fetch_object(struct alt_base *repo, unsigned char *sha1) curl_result = curl_easy_perform(curl); curl_easy_setopt(curl, CURLOPT_HTTPHEADER, no_range_header); if (curl_result != 0) { - unlink(tmpfile); return error("%s", curl_errorstr); }