From: Beat Bolli Date: Fri, 15 Mar 2024 19:46:04 +0000 (+0100) Subject: t/t1*: avoid redundant uses of cat X-Git-Tag: v2.45.0-rc0~80^2~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2ed139ccc935f9bacc670e7be32694657918e84d;p=thirdparty%2Fgit.git t/t1*: avoid redundant uses of cat Signed-off-by: Beat Bolli Acked-by: Taylor Blau Signed-off-by: Junio C Hamano --- diff --git a/t/t1007-hash-object.sh b/t/t1007-hash-object.sh index ac3d173767..64aea38486 100755 --- a/t/t1007-hash-object.sh +++ b/t/t1007-hash-object.sh @@ -124,8 +124,8 @@ test_expect_success 'check that appropriate filter is invoke when --path is used path0_sha=$(git hash-object --path=file0 file1) && test "$file0_sha" = "$path0_sha" && test "$file1_sha" = "$path1_sha" && - path1_sha=$(cat file0 | git hash-object --path=file1 --stdin) && - path0_sha=$(cat file1 | git hash-object --path=file0 --stdin) && + path1_sha=$(git hash-object --path=file1 --stdin check-rules-file out && sed -n "/^S /!s/^. //p" out >ls-files &&