mirror of
https://github.com/git/git.git
synced 2024-11-24 18:33:43 +08:00
t/t4018: avoid two unnecessary sub-shell invocations
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
8ac8cf5bc1
commit
99f55ebc67
@ -37,13 +37,13 @@ for p in $builtin_patterns
|
||||
do
|
||||
test_expect_success "builtin $p pattern compiles" '
|
||||
echo "*.java diff=$p" > .gitattributes &&
|
||||
! ( git diff --no-index Beer.java Beer-correct.java 2>&1 |
|
||||
grep "fatal" > /dev/null )
|
||||
! { git diff --no-index Beer.java Beer-correct.java 2>&1 |
|
||||
grep "fatal" > /dev/null; }
|
||||
'
|
||||
test_expect_success "builtin $p wordRegex pattern compiles" '
|
||||
! ( git diff --no-index --word-diff \
|
||||
! { git diff --no-index --word-diff \
|
||||
Beer.java Beer-correct.java 2>&1 |
|
||||
grep "fatal" > /dev/null )
|
||||
grep "fatal" > /dev/null; }
|
||||
'
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user