aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorBeat Bolli <bb@drbeat.li>2024-03-15 20:46:15 +0100
committerJunio C Hamano <gitster@pobox.com>2024-03-16 11:08:57 -0700
commit37ea7c4875f4b581a75a6a2ac6c4904040a75580 (patch)
treed6861bdc72723ce3b65e437d7ceda949cbd2724b /t
parentf7caf1479ed5a189ddcf51d9afa7cdd7260de550 (diff)
downloadgit-37ea7c4875f4b581a75a6a2ac6c4904040a75580.tar.gz
t/t5*: merge a "grep | sed" pipeline
Signed-off-by: Beat Bolli <dev+git@drbeat.li> Acked-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t5401-update-hooks.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5401-update-hooks.sh b/t/t5401-update-hooks.sh
index 8b8bc47dc0..d8cadeec73 100755
--- a/t/t5401-update-hooks.sh
+++ b/t/t5401-update-hooks.sh
@@ -123,7 +123,7 @@ remote: STDOUT post-update
remote: STDERR post-update
EOF
test_expect_success 'send-pack stderr contains hook messages' '
- grep ^remote: send.err | sed "s/ *\$//" >actual &&
+ sed -n "/^remote:/s/ *\$//p" send.err >actual &&
test_cmp expect actual
'