]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'jc/index-pack-fsck-levels'
authorJunio C Hamano <gitster@pobox.com>
Mon, 25 Mar 2024 23:16:34 +0000 (16:16 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Mar 2024 23:16:34 +0000 (16:16 -0700)
Test fix.

* jc/index-pack-fsck-levels:
  t5300: fix test_with_bad_commit()

t/t5300-pack-object.sh

index a58f91035d124d6710438c5524c91bdbf66b4e84..61e2be2903d344563fe2ebea718de962e60d7b78 100755 (executable)
@@ -465,7 +465,7 @@ test_with_bad_commit () {
        must_pass_arg="$2" &&
        (
                cd strict &&
-               test_expect_fail git index-pack "$must_fail_arg" "test-$(cat pack-name).pack"
+               test_must_fail git index-pack "$must_fail_arg" "test-$(cat pack-name).pack" &&
                git index-pack "$must_pass_arg" "test-$(cat pack-name).pack"
        )
 }