aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Carlo Marcelo Arenas Belón <carenas@gmail.com> 2021-08-01 14:53:00 -0700
committerGravatar Junio C Hamano <gitster@pobox.com> 2021-08-02 15:05:23 -0700
commit4da8b2fcd4f7b993ffd3ecf59d279c97fe23b0df (patch)
treeb6b27e7d4656768c1b0540efab43bcf4b4cb8d0c
parentebf3c04b262aa27fbb97f8a0156c2347fecafafb (diff)
downloadgit-4da8b2fcd4f7b993ffd3ecf59d279c97fe23b0df.tar.gz
git-4da8b2fcd4f7b993ffd3ecf59d279c97fe23b0df.zip
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 <carenas@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xt/t7508-status.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t7508-status.sh b/t/t7508-status.sh
index 2b72451ba3..05c6c02435 100755
--- a/t/t7508-status.sh
+++ b/t/t7508-status.sh
@@ -882,7 +882,7 @@ test_expect_success 'status shows detached HEAD properly after checking out non-
git clone upstream downstream &&
git -C downstream checkout @{u} &&
git -C downstream status >actual &&
- test_i18ngrep "HEAD detached at [0-9a-f]\\+" actual
+ grep -E "HEAD detached at [0-9a-f]+" actual
'
test_expect_success 'setup status submodule summary' '