diff --git a/t/t5300-pack-object.sh b/t/t5300-pack-object.sh
index 73d871c7133d8cc392bc4ccea93fed4f750b2edf..ccfc64c6eef7e0aba7bd8a8496427470e9020309 100755 (executable)
--- a/t/t5300-pack-object.sh
+++ b/t/t5300-pack-object.sh
test_expect_success \
'make sure index-pack detects the SHA1 collision' \
- 'test_must_fail git index-pack -o bad.idx test-3.pack'
+ 'test_must_fail git index-pack -o bad.idx test-3.pack 2>msg &&
+ grep "SHA1 COLLISION FOUND" msg'
test_expect_success \
'honor pack.packSizeLimit' \