Skip to content

Commit 4fa2197

Browse files
Nick HengeveldJunio C Hamano
authored andcommitted
[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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 271421c commit 4fa2197

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

http-fetch.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,6 @@ static int fetch_object(struct alt_base *repo, unsigned char *sha1)
550550
curl_result = curl_easy_perform(curl);
551551
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, no_range_header);
552552
if (curl_result != 0) {
553-
unlink(tmpfile);
554553
return error("%s", curl_errorstr);
555554
}
556555

0 commit comments

Comments
 (0)