aboutsummaryrefslogtreecommitdiffstats
path: root/http-fetch.c
diff options
context:
space:
mode:
authorNick Hengeveld <nickh@reactrix.com>2005-09-30 16:27:47 -0700
committerJunio C Hamano <junkio@cox.net>2005-10-01 23:17:15 -0700
commit4fa2197e614950279527b14825d1e9572454a48c (patch)
tree4c7b45efedff137292dafb6b751eaf1702ed05c6 /http-fetch.c
parent271421cd345a9b5e2fc7e30e672d2c998f50e1dc (diff)
downloadgit-4fa2197e614950279527b14825d1e9572454a48c.tar.gz
[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>
Diffstat (limited to 'http-fetch.c')
-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);
}