diff options
| author | Marcel Telka <marcel@telka.sk> | 2024-05-17 21:01:49 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-05-17 12:13:18 -0700 |
| commit | 0f063b6c766fc98124f60b6b0f8424142641ff88 (patch) | |
| tree | e4b2fa8aa415d32167bbf15d19677b4d6c16385d /t/t1404-update-ref-errors.sh | |
| parent | The fifth batch (diff) | |
| download | git-0f063b6c766fc98124f60b6b0f8424142641ff88.tar.gz git-0f063b6c766fc98124f60b6b0f8424142641ff88.zip | |
Switch grep from non-portable BRE to portable ERE
This makes the grep usage fully POSIX compliant. The ability to
enable ERE features in BRE using backslash is a GNU extension.
Signed-off-by: Marcel Telka <marcel@telka.sk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1404-update-ref-errors.sh')
| -rwxr-xr-x | t/t1404-update-ref-errors.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t1404-update-ref-errors.sh b/t/t1404-update-ref-errors.sh index 98e9158bd2..67ebd81a4c 100755 --- a/t/t1404-update-ref-errors.sh +++ b/t/t1404-update-ref-errors.sh @@ -100,7 +100,7 @@ df_test() { printf "%s\n" "delete $delname" "create $addname $D" fi >commands && test_must_fail git update-ref --stdin <commands 2>output.err && - grep "fatal:\( cannot lock ref $SQ$addname$SQ:\)\? $SQ$delref$SQ exists; cannot create $SQ$addref$SQ" output.err && + grep -E "fatal:( cannot lock ref $SQ$addname$SQ:)? $SQ$delref$SQ exists; cannot create $SQ$addref$SQ" output.err && printf "%s\n" "$C $delref" >expected-refs && git for-each-ref --format="%(objectname) %(refname)" $prefix/r >actual-refs && test_cmp expected-refs actual-refs |
