@matheusbsbs / matheus-bagliano / commits / 4fa2197e61
Fork 0

[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 <nickh@reactrix.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

Nick Hengeveld committed Sep 30, 2005 at 16:27 UTC 4fa2197e614950279527b14825d1e9572454a48c
1 file changed -1
http-fetch.c
-1
@@ -550,7 +550,6 @@ static int fetch_object(struct alt_base *repo, unsigned char *sha1)
550 curl_result = curl_easy_perform(curl);
551 curl_easy_setopt(curl, CURLOPT_HTTPHEADER, no_range_header);
552 if (curl_result != 0) {
553 - unlink(tmpfile);
553 return error("%s", curl_errorstr);
554 }
555