Skip to content

Commit f94804c

Browse files
peffdscho
authored andcommitted
t9300: drop some useless uses of cat
These waste a process, and make the line longer than it needs to be. Signed-off-by: Jeff King <[email protected]>
1 parent d0832b2 commit f94804c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

t/t9300-fast-import.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2125,12 +2125,12 @@ test_expect_success 'R: export-marks feature results in a marks file being creat
21252125
21262126
EOF
21272127
2128-
cat input | git fast-import &&
2128+
git fast-import <input &&
21292129
grep :1 git.marks
21302130
'
21312131

21322132
test_expect_success 'R: export-marks options can be overridden by commandline options' '
2133-
cat input | git fast-import --export-marks=other.marks &&
2133+
git fast-import --export-marks=other.marks <input &&
21342134
grep :1 other.marks
21352135
'
21362136

@@ -2242,7 +2242,7 @@ test_expect_success 'R: import to output marks works without any content' '
22422242
feature export-marks=marks.new
22432243
EOF
22442244
2245-
cat input | git fast-import &&
2245+
git fast-import <input &&
22462246
test_cmp marks.out marks.new
22472247
'
22482248

@@ -2252,7 +2252,7 @@ test_expect_success 'R: import marks prefers commandline marks file over the str
22522252
feature export-marks=marks.new
22532253
EOF
22542254
2255-
cat input | git fast-import --import-marks=marks.out &&
2255+
git fast-import --import-marks=marks.out <input &&
22562256
test_cmp marks.out marks.new
22572257
'
22582258

@@ -2560,7 +2560,7 @@ test_expect_success 'R: quiet option results in no stats being output' '
25602560
25612561
EOF
25622562
2563-
cat input | git fast-import 2> output &&
2563+
git fast-import 2>output <input &&
25642564
test_must_be_empty output
25652565
'
25662566

0 commit comments

Comments
 (0)