mirror of
https://github.com/git/git
synced 2024-08-25 10:45:59 +00:00
tests: shell negation portability fix
Commit969c8775
introduced a test which uses the non-portable construct: command1 && ! command2 | command3 which must be command1 && ! (command2 | command3) to work on bsd shells (this is another example ofbbf08124
, which fixed several similar cases). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
8ed0a740dd
commit
7213080817
|
@ -72,7 +72,7 @@ test_expect_success 'apply --directory (delete file)' '
|
|||
echo content >some/sub/dir/delfile &&
|
||||
git add some/sub/dir/delfile &&
|
||||
git apply --directory=some/sub/dir/ --index patch &&
|
||||
! git ls-files | grep delfile
|
||||
! (git ls-files | grep delfile)
|
||||
'
|
||||
|
||||
cat > patch << 'EOF'
|
||||
|
|
Loading…
Reference in a new issue