]> git.ipfire.org Git - thirdparty/git.git/commit
t5300: fix test_with_bad_commit()
authorJohn Cai <johncai86@gmail.com>
Fri, 15 Mar 2024 04:57:26 +0000 (04:57 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 15 Mar 2024 17:08:30 +0000 (10:08 -0700)
commitad538c61dab42db9012bba7b41bbd63f75ff6469
treec37a47e4c51f67e0942c2a26c7208f7cdb8cf675
parent0f8edf7317c7eb152bf045ed99b46072439088a6
t5300: fix test_with_bad_commit()

0f8edf7317 (index-pack: --fsck-objects to take an optional argument for
fsck msgs, 2024-02-01) added a test function test_with_bad_commit() that
contained two bugs. test_expect_fail was used instead of test_must_fail,
and a && was not included at the end of the line.

Fix these two issues in the test.

Signed-off-by: John Cai <johncai86@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5300-pack-object.sh