From: Beat Bolli Date: Fri, 15 Mar 2024 19:46:09 +0000 (+0100) Subject: t/t7*: avoid redundant use of cat X-Git-Tag: v2.45.0-rc0~80^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6178c08ec737221c5850faf10f6b306de064bf04;p=thirdparty%2Fgit.git t/t7*: avoid redundant use of cat Signed-off-by: Beat Bolli Acked-by: Taylor Blau Signed-off-by: Junio C Hamano --- diff --git a/t/t7704-repack-cruft.sh b/t/t7704-repack-cruft.sh index be3735dff0..71e1ef3a10 100755 --- a/t/t7704-repack-cruft.sh +++ b/t/t7704-repack-cruft.sh @@ -48,7 +48,7 @@ test_expect_success '--expire-to stores pruned objects (now)' ' # ...in other words, the combined contents of this # repository and expired.git should be the same as the # set of objects we started with. - cat expired.objects remaining.objects | sort >actual && + sort expired.objects remaining.objects >actual && test_cmp expect actual && # The "moved" objects (i.e., those in expired.git)