зеркало из https://github.com/microsoft/git.git
t/t1*: avoid redundant uses of cat
Signed-off-by: Beat Bolli <dev+git@drbeat.li> Acked-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
74615c2a74
Коммит
2ed139ccc9
|
@ -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 <file0) &&
|
||||
path0_sha=$(git hash-object --path=file0 --stdin <file1) &&
|
||||
test "$file0_sha" = "$path0_sha" &&
|
||||
test "$file1_sha" = "$path1_sha"
|
||||
'
|
||||
|
@ -154,7 +154,7 @@ test_expect_success '--path works in a subdirectory' '
|
|||
test_expect_success 'check that --no-filters option works' '
|
||||
nofilters_file1=$(git hash-object --no-filters file1) &&
|
||||
test "$file0_sha" = "$nofilters_file1" &&
|
||||
nofilters_file1=$(cat file1 | git hash-object --stdin) &&
|
||||
nofilters_file1=$(git hash-object --stdin <file1) &&
|
||||
test "$file0_sha" = "$nofilters_file1"
|
||||
'
|
||||
|
||||
|
|
|
@ -968,7 +968,7 @@ test_expect_success 'check-rules non-cone mode' '
|
|||
git -C bare sparse-checkout check-rules --no-cone --rules-file ../rules\
|
||||
>check-rules-file <all-files &&
|
||||
|
||||
cat rules | git -C repo sparse-checkout set --no-cone --stdin &&
|
||||
git -C repo sparse-checkout set --no-cone --stdin <rules &&
|
||||
git -C repo ls-files -t >out &&
|
||||
sed -n "/^S /!s/^. //p" out >ls-files &&
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче