summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-06-28 17:17:04 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-06-28 17:17:50 (GMT)
commit73fc2aadc748da8a5515345ab02657e4db7f66d4 (patch)
tree7d530c9de5fe500dd9bb5e5aa2ca4ab4f7b4843a /t
parent90cf590f53f2939a47ca7b397e270e8228699829 (diff)
downloadgit-73fc2aadc748da8a5515345ab02657e4db7f66d4.zip
git-73fc2aadc748da8a5515345ab02657e4db7f66d4.tar.gz
git-73fc2aadc748da8a5515345ab02657e4db7f66d4.tar.bz2
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 <michael.kebe@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t1450-fsck.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t1450-fsck.sh b/t/t1450-fsck.sh
index 8f52da2..30e217d 100755
--- a/t/t1450-fsck.sh
+++ b/t/t1450-fsck.sh
@@ -541,7 +541,7 @@ test_expect_success 'fsck --name-objects' '
remove_loose_object $(git rev-parse julius:caesar.t) &&
test_must_fail git fsck --name-objects >out &&
tree=$(git rev-parse --verify julius:) &&
- grep "$tree (\(refs/heads/master\|HEAD\)@{[0-9]*}:" out
+ egrep "$tree \((refs/heads/master|HEAD)@\{[0-9]*\}:" out
)
'