diff --git a/t/t5331-pack-objects-stdin.sh b/t/t5331-pack-objects-stdin.sh index 443d855291..0fa2f12455 100755 --- a/t/t5331-pack-objects-stdin.sh +++ b/t/t5331-pack-objects-stdin.sh @@ -676,7 +676,7 @@ test_expect_success '--stdin-packs=follow-reachable with --unpacked and loose ob objects_in_packs $P >actual && # The unreachable blob should NOT be in the output. - ! grep $unreachable actual && + test_grep ! $unreachable actual && test_cmp expect actual )