X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft5300-pack-object.sh;h=645583f9d729cb04ea7bd9638b0c49c48128822e;hb=3814c07498f87e7d27b55175ca2852fcc4cd27f4;hp=c955fe44f5b962ef305e49c21bc3fb0e5b58d462;hpb=53b22a9e45161004ff3260782abc4ee2a5b3e730;p=git.git diff --git a/t/t5300-pack-object.sh b/t/t5300-pack-object.sh index c955fe44f..645583f9d 100755 --- a/t/t5300-pack-object.sh +++ b/t/t5300-pack-object.sh @@ -266,7 +266,7 @@ test_expect_success \ test_expect_success \ 'make sure index-pack detects the SHA1 collision' \ - '! git-index-pack -o bad.idx test-3.pack' + 'test_must_fail git-index-pack -o bad.idx test-3.pack' test_expect_success \ 'honor pack.packSizeLimit' \ @@ -274,4 +274,99 @@ test_expect_success \ packname_4=$(git pack-objects test-4 LIST && + rm -f .git/index && + git update-index --index-info LIST && + rm -f .git/index && + git update-index --index-info