Skip to content

Commit 4da8b2f

Browse files
carenasgitster
authored andcommitted
t7508: avoid non POSIX BRE
24c30e0b6 (wt-status: tolerate dangling marks, 2020-09-01) adds a test that uses a BRE which breaks at least with OpenBSD's grep. switch to an ERE as it is done for similar checks and while at it, remove the now obsolete test_i18ngrep call. Signed-off-by: Carlo Marcelo Arenas Belón <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ebf3c04 commit 4da8b2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t7508-status.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ test_expect_success 'status shows detached HEAD properly after checking out non-
882882
git clone upstream downstream &&
883883
git -C downstream checkout @{u} &&
884884
git -C downstream status >actual &&
885-
test_i18ngrep "HEAD detached at [0-9a-f]\\+" actual
885+
grep -E "HEAD detached at [0-9a-f]+" actual
886886
'
887887

888888
test_expect_success 'setup status submodule summary' '

0 commit comments

Comments
 (0)