diff options
Diffstat (limited to 't')
-rwxr-xr-x | t/t5300-pack-object.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/t/t5300-pack-object.sh b/t/t5300-pack-object.sh index eacb1e92c2..35e036a864 100755 --- a/t/t5300-pack-object.sh +++ b/t/t5300-pack-object.sh @@ -255,4 +255,14 @@ test_expect_success \ :' +test_expect_success \ + 'fake a SHA1 hash collision' \ + 'test -f .git/objects/c8/2de19312b6c3695c0c18f70709a6c535682a67 && + cp -f .git/objects/9d/235ed07cd19811a6ceb342de82f190e49c9f68 \ + .git/objects/c8/2de19312b6c3695c0c18f70709a6c535682a67' + +test_expect_failure \ + 'make sure index-pack detects the SHA1 collision' \ + 'git-index-pack -o bad.idx test-3.pack' + test_done |