summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xt/t4203-mailmap.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/t/t4203-mailmap.sh b/t/t4203-mailmap.sh
index c9cb1aa127..a3da473689 100755
--- a/t/t4203-mailmap.sh
+++ b/t/t4203-mailmap.sh
@@ -746,11 +746,11 @@ test_expect_success 'Blame --porcelain output (complex mapping)' '
EOF
git blame --porcelain one >actual.blame &&
- grep -E \
- -e "[0-9]+ [0-9]+ [0-9]+$" \
- -e "^author .*$" \
- actual.blame >actual.grep &&
- cut -d " " -f2-4 <actual.grep >actual.fuzz &&
+
+ NUM="[0-9][0-9]*" &&
+ sed -n <actual.blame >actual.fuzz \
+ -e "s/^author //p" \
+ -e "s/^$OID_REGEX \\($NUM $NUM $NUM\\)$/\\1/p" &&
test_cmp expect actual.fuzz
'