]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t5520: avoid alternation in grep's BRE (not POSIX)
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>
Wed, 20 May 2020 03:44:44 +0000 (20:44 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 20 May 2020 15:57:07 +0000 (08:57 -0700)
Instead of using a BRE, that broke tests 30-32, 37-39, 42 at least with
OpenBSD 6.7; use a simpler ERE.

Fixes: d9f15d37f1 (pull: pass --autostash to merge, 2020-04-07)
Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5520-pull.sh

index 37535d63a9cc0c8d611747bd3235995d0b98a115..9fae07cdfafab1a05354dfd41df3a5cf5cb3ce58 100755 (executable)
@@ -28,7 +28,7 @@ test_pull_autostash_fail () {
        echo dirty >new_file &&
        git add new_file &&
        test_must_fail git pull "$@" . copy 2>err &&
-       test_i18ngrep "\(uncommitted changes.\)\|\(overwritten by merge:\)" err
+       test_i18ngrep -E "uncommitted changes.|overwritten by merge:" err
 }
 
 test_expect_success setup '