A few months ago I produced a set of patches to allow git to work even in the presence of pack corruption given that the corrupted objects have a good duplicate in the object store. Turns out that this work was rather incomplete and covered only a limited set of cases. This series extend coverage to all cases I could think about, and make repack-objects able to create a good pack in such conditions to "fix" the corruption without having to perform a full repack. Yes, this is all about the small and trivial patch I posted a while ago that I intended to repost with a test case. Well, the test failed miserably, resulting in this series before it finally all passed. ;-) builtin-pack-objects.c | 79 +++++++++++++++++----- builtin-unpack-objects.c | 2 + cache.h | 2 +- index-pack.c | 2 +- pack-revindex.c | 3 +- sha1_file.c | 85 ++++++++++++++++++----- t/t5302-pack-index.sh | 3 +- t/t5303-pack-corruption-resilience.sh | 96 +++++++++++++++++++++++++-- 8 files changed, 223 insertions(+), 49 deletions(-) Nicolas -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html