Skip to content

Commit

Permalink
[PATCH] HTTP partial transfer support fix.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nick Hengeveld authored and Junio C Hamano committed Oct 2, 2005
1 parent 271421c commit 4fa2197
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion http-fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 4fa2197

Please sign in to comment.