]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t4202: fix patternType setting in --invert-grep test
authorRené Scharfe <l.s.r@web.de>
Fri, 17 Dec 2021 16:48:52 +0000 (17:48 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 18 Dec 2021 00:59:53 +0000 (16:59 -0800)
Actually use extended regexes as indicated in the comment.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4202-log.sh

index 7884e3d46b36394d0d6243f7abf40d990dcf8f6d..f51b57b4a2c8524084c167df5ebbde172c8917f9 100755 (executable)
@@ -250,7 +250,7 @@ test_expect_success 'log --invert-grep --grep' '
        test_cmp expect actual &&
 
        # POSIX extended
-       git -c grep.patternType=basic log --pretty="tformat:%s" --invert-grep --grep=t[h] --grep=S[e]c >actual &&
+       git -c grep.patternType=extended log --pretty="tformat:%s" --invert-grep --grep=t[h] --grep=S[e]c >actual &&
        test_cmp expect actual &&
 
        # PCRE