File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -124,8 +124,8 @@ test_expect_success 'check that appropriate filter is invoke when --path is used
124
124
path0_sha=$(git hash-object --path=file0 file1) &&
125
125
test "$file0_sha" = "$path0_sha" &&
126
126
test "$file1_sha" = "$path1_sha" &&
127
- path1_sha=$(cat file0 | git hash-object --path=file1 --stdin) &&
128
- path0_sha=$(cat file1 | git hash-object --path=file0 --stdin) &&
127
+ path1_sha=$(git hash-object --path=file1 --stdin <file0 ) &&
128
+ path0_sha=$(git hash-object --path=file0 --stdin <file1 ) &&
129
129
test "$file0_sha" = "$path0_sha" &&
130
130
test "$file1_sha" = "$path1_sha"
131
131
'
@@ -154,7 +154,7 @@ test_expect_success '--path works in a subdirectory' '
154
154
test_expect_success ' check that --no-filters option works' '
155
155
nofilters_file1=$(git hash-object --no-filters file1) &&
156
156
test "$file0_sha" = "$nofilters_file1" &&
157
- nofilters_file1=$(cat file1 | git hash-object --stdin) &&
157
+ nofilters_file1=$(git hash-object --stdin <file1 ) &&
158
158
test "$file0_sha" = "$nofilters_file1"
159
159
'
160
160
Original file line number Diff line number Diff line change @@ -968,7 +968,7 @@ test_expect_success 'check-rules non-cone mode' '
968
968
git -C bare sparse-checkout check-rules --no-cone --rules-file ../rules\
969
969
>check-rules-file <all-files &&
970
970
971
- cat rules | git -C repo sparse-checkout set --no-cone --stdin &&
971
+ git -C repo sparse-checkout set --no-cone --stdin <rules &&
972
972
git -C repo ls-files -t >out &&
973
973
sed -n "/^S /!s/^. //p" out >ls-files &&
974
974
You can’t perform that action at this time.
0 commit comments