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>
SZEDER Gábor committed
Sep 6, 2018 at 04:48 UTC
acdee9e9e815c2df417feef3ef8de25f0dcec68d
1 file changed
+1
-1
t/t1700-split-index.sh
+1
-1
@@ -57,7 +57,7 @@ test_expect_success 'disable split index' '
57
EOF
58
test_cmp ls-files.expect ls-files.actual &&
59
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") &&
61
test-tool dump-split-index .git/index | sed "/^own/d" >actual &&
62
cat >expect <<-EOF &&
63
not a split index