Skip to content

Commit c703309

Browse files
carenasgitster
authored andcommitted
t5520: avoid alternation in grep's BRE (not POSIX)
Instead of using a BRE, that broke tests 30-32, 37-39, 42 at least with OpenBSD 6.7; use a simpler ERE. Fixes: d9f15d3 (pull: pass --autostash to merge, 2020-04-07) Signed-off-by: Carlo Marcelo Arenas Belón <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d9f15d3 commit c703309

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t5520-pull.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ test_pull_autostash_fail () {
2828
echo dirty >new_file &&
2929
git add new_file &&
3030
test_must_fail git pull "$@" . copy 2>err &&
31-
test_i18ngrep "\(uncommitted changes.\)\|\(overwritten by merge:\)" err
31+
test_i18ngrep -E "uncommitted changes.|overwritten by merge:" err
3232
}
3333

3434
test_expect_success setup '

0 commit comments

Comments
 (0)