mirror of
https://github.com/git/git
synced 2024-08-26 19:19:18 +00:00
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 <szeder.dev@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
1d4361b0f3
commit
acdee9e9e8
|
@ -57,7 +57,7 @@ test_expect_success 'disable split index' '
|
||||||
EOF
|
EOF
|
||||||
test_cmp ls-files.expect ls-files.actual &&
|
test_cmp ls-files.expect ls-files.actual &&
|
||||||
|
|
||||||
BASE=$(test-tool dump-split-index .git/index | grep "^own" | sed "s/own/base/") &&
|
BASE=$(test-tool dump-split-index .git/index | sed -n "s/^own/base/p") &&
|
||||||
test-tool dump-split-index .git/index | sed "/^own/d" >actual &&
|
test-tool dump-split-index .git/index | sed "/^own/d" >actual &&
|
||||||
cat >expect <<-EOF &&
|
cat >expect <<-EOF &&
|
||||||
not a split index
|
not a split index
|
||||||
|
|
Loading…
Reference in a new issue