Skip to content

Commit 73fc2aa

Browse files
committed
t1450: use egrep for regexp "alternation"
GNU grep allows "\(A\|B\)" as alternation in BRE, but this is an extension not understood by some other implementations of grep (Michael Kebe reported an breakage on Solaris). Rewrite the offending test to ERE and use egrep instead. Noticed-by: Michael Kebe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 90cf590 commit 73fc2aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t1450-fsck.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ test_expect_success 'fsck --name-objects' '
541541
remove_loose_object $(git rev-parse julius:caesar.t) &&
542542
test_must_fail git fsck --name-objects >out &&
543543
tree=$(git rev-parse --verify julius:) &&
544-
grep "$tree (\(refs/heads/master\|HEAD\)@{[0-9]*}:" out
544+
egrep "$tree \((refs/heads/master|HEAD)@\{[0-9]*\}:" out
545545
)
546546
'
547547

0 commit comments

Comments
 (0)