]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t5401-update-hooks.sh
The seventh batch
[thirdparty/git.git] / t / t5401-update-hooks.sh
index 8b8bc47dc0b9d6a8d90928c628bbe122d5d04f31..d8cadeec73310d36ad11a1427ec44cc9fc2d3a66 100755 (executable)
@@ -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
 '