From: Shawn O. Pearce Date: Thu, 15 Apr 2010 19:09:14 GMT Subject: [PATCH 0/6] detect dumb HTTP pack file corruption Message-ID: <1271358560-8946-1-git-send-email-spearce@spearce.org> In-Reply-To: <20100415141504.GB17883@spearce.org> This series tries to better detect and avoid corrupted pack and idx files downloaded over the dumb HTTP transport. It addresses the GitHub repository maintainence causing corruption issue reported today by Christian Halstrick. Shawn O. Pearce (6): http.c: Remove bad free of static block t5550-http-fetch: Use subshell for repository operations http.c: Tiny refactoring of finish_http_pack_request http.c: Drop useless != NULL test in finish_http_pack_request http-fetch: Use index-pack rather than verify-pack to check packs http-fetch: Use temporary files for pack-*.idx until verified cache.h | 3 +- http.c | 118 +++++++++++++++++++++++++++++++++---------------- http.h | 1 - pack-check.c | 15 +++++-- pack.h | 1 + sha1_file.c | 17 +++++-- t/t5550-http-fetch.sh | 37 ++++++++++++++- 7 files changed, 140 insertions(+), 52 deletions(-)