Skip to content

Commit acdee9e

Browse files
szedergitster
authored andcommitted
t1700-split-index: drop unnecessary 'grep'
The test 'disable split index' in 't1700-split-index.sh' runs the following pipeline: cmd | grep <pattern> | sed s/// Drop that 'grep' from the pipeline, and let 'sed' take over its duties. Signed-off-by: SZEDER Gábor <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1d4361b commit acdee9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t1700-split-index.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ test_expect_success 'disable split index' '
5757
EOF
5858
test_cmp ls-files.expect ls-files.actual &&
5959
60-
BASE=$(test-tool dump-split-index .git/index | grep "^own" | sed "s/own/base/") &&
60+
BASE=$(test-tool dump-split-index .git/index | sed -n "s/^own/base/p") &&
6161
test-tool dump-split-index .git/index | sed "/^own/d" >actual &&
6262
cat >expect <<-EOF &&
6363
not a split index

0 commit comments

Comments
 (0)