summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Nick Hengeveld <nickh@reactrix.com>2005-09-30 16:27:47 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2005-10-01 23:17:15 -0700
commit4fa2197e614950279527b14825d1e9572454a48c (patch)
tree4c7b45efedff137292dafb6b751eaf1702ed05c6
parentUpdate partial HTTP transfers. (diff)
downloadtgif-4fa2197e614950279527b14825d1e9572454a48c.tar.xz
[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>
-rw-r--r--http-fetch.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/http-fetch.c b/http-fetch.c
index e8ac9959ff..71a8c60b56 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);
}