Skip to content

Commit 67dd07e

Browse files
Beat Bolligitster
authored andcommitted
t/t3*: merge a "grep | awk" pipeline
Signed-off-by: Beat Bolli <[email protected]> Acked-by: Taylor Blau <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8a3c5cc commit 67dd07e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t3920-crlf-messages.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ test_expect_success 'branch: --verbose works with messages using CRLF' '
9797
git branch -v >tmp &&
9898
# Remove first two columns, and the line for the currently checked out branch
9999
current=$(git branch --show-current) &&
100-
grep -v $current <tmp | awk "{\$1=\$2=\"\"}1" >actual &&
100+
awk "/$current/ { next } { \$1 = \$2 = \"\" } 1" <tmp >actual &&
101101
test_cmp expect actual
102102
'
103103

0 commit comments

Comments
 (0)