[PATCH] HTTP partial transfer support fix.
authorNick Hengeveld <nickh@reactrix.com>
Fri, 30 Sep 2005 23:27:47 +0000 (16:27 -0700)
committerJunio C Hamano <junkio@cox.net>
Sun, 2 Oct 2005 06:17:15 +0000 (23:17 -0700)
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>
http-fetch.c

index e8ac995..71a8c60 100644 (file)
@@ -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);
        }