Skip to content

Commit 7ee9066

Browse files
committed
t/t7600: avoid GNUism in grep
Using \+ to mean "one or more" in grep without -E is a GNU extension outside POSIX. Avoid it. Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 144126a commit 7ee9066

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t7600-merge.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ test_expect_success 'override config option -n' '
371371
git merge --summary c2 >diffstat.txt &&
372372
verify_merge file result.1-5 msg.1-5 &&
373373
verify_parents $c1 $c2 &&
374-
if ! grep -e "^ file | \+2 +-$" diffstat.txt
374+
if ! grep -e "^ file | *2 +-$" diffstat.txt
375375
then
376376
echo "[OOPS] diffstat was not generated"
377377
fi
@@ -386,7 +386,7 @@ test_expect_success 'override config option --summary' '
386386
git merge -n c2 >diffstat.txt &&
387387
verify_merge file result.1-5 msg.1-5 &&
388388
verify_parents $c1 $c2 &&
389-
if grep -e "^ file | \+2 +-$" diffstat.txt
389+
if grep -e "^ file | *2 +-$" diffstat.txt
390390
then
391391
echo "[OOPS] diffstat was generated"
392392
false

0 commit comments

Comments
 (0)