diff options
author | Jeff King <peff@peff.net> | 2013-03-25 16:22:29 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-03-27 13:47:11 -0700 |
commit | 0e15ad9b730a1516f8a786523266707c4d26f5ab (patch) | |
tree | abf312ef39b36f5687de9f38de2628747ab5101d /t/t5710-info-alternate.sh | |
parent | d9c31e14d0aafdd45a382d01fcfd66c65a5f4b95 (diff) | |
download | git-0e15ad9b730a1516f8a786523266707c4d26f5ab.tar.gz |
add tests for cloning corrupted repositories
We try not to let corruption pass unnoticed over fetches and
clones. For the most part, this works, but there are some
broken corner cases, including:
1. We do not detect missing objects over git-aware
transports. This is a little hard to test, because the
sending side will actually complain about the missing
object.
To fool it, we corrupt a repository such that we have a
"misnamed" object: it claims to be sha1 X, but is
really Y. This lets the sender blindly transmit it, but
it is the receiver's responsibility to verify that what
it got is sane (and it does not).
2. We do not detect missing or misnamed blobs during the
checkout phase of clone.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5710-info-alternate.sh')
0 files changed, 0 insertions, 0 deletions