Update partial HTTP transfers.
commit271421cd345a9b5e2fc7e30e672d2c998f50e1dc
authorJunio C Hamano <junkio@cox.net>
Fri, 30 Sep 2005 07:07:39 +0000 (30 00:07 -0700)
committerJunio C Hamano <junkio@cox.net>
Sun, 2 Oct 2005 06:17:14 +0000 (1 23:17 -0700)
tree32a6dc8ad6c68ed1d1a6f9b16a4c4971635a757c
parent49a0f240f7be05728f97903efd97ad7898ff6d08
Update partial HTTP transfers.

Add the sanity checks discussed on the list with Nick Hengeveld in
<20050927000931.GA15615@reactrix.com>.

 * unlink of previous and rename from temp to previous can fail for
   reasons other than benign ones (missing previous and missing temp).
   Report these failures when we encounter them, to make diagnosing
   problems easier.

 * when rewinding the partially written result, make sure to
   truncate the file.

Also verify the pack after downloading by calling
verify_packfile().

Signed-off-by: Junio C Hamano <junkio@cox.net>
http-fetch.c