aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBeat Bolli <bb@drbeat.li>2024-03-15 20:46:13 +0100
committerJunio C Hamano <gitster@pobox.com>2024-03-16 11:08:56 -0700
commit67dd07e8af11534d8bd723747f9c0a91c530b6bc (patch)
tree91df5ded2716d8edc3b909b716ccf3b95e5c567f
parent8a3c5ccc4dbb25e22c1b67c643b29d086fa84ab4 (diff)
downloadgit-67dd07e8af11534d8bd723747f9c0a91c530b6bc.tar.gz
t/t3*: merge a "grep | awk" 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>
-rwxr-xr-xt/t3920-crlf-messages.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t3920-crlf-messages.sh b/t/t3920-crlf-messages.sh
index 5eed640a68..50ae222f08 100755
--- a/t/t3920-crlf-messages.sh
+++ b/t/t3920-crlf-messages.sh
@@ -97,7 +97,7 @@ test_expect_success 'branch: --verbose works with messages using CRLF' '
git branch -v >tmp &&
# Remove first two columns, and the line for the currently checked out branch
current=$(git branch --show-current) &&
- grep -v $current <tmp | awk "{\$1=\$2=\"\"}1" >actual &&
+ awk "/$current/ { next } { \$1 = \$2 = \"\" } 1" <tmp >actual &&
test_cmp expect actual
'