diff options
author | Jeff King <peff@peff.net> | 2008-10-13 05:35:59 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-10-13 08:43:04 -0700 |
commit | 80bfd76af7ac817d4a4b9b7d54485076897c9a67 (patch) | |
tree | 497831cc9b18a2574a5dd1e7104b7561a2c67a5e /t | |
parent | 5c283eb13c94be6ca974aa722159dc9838d10d97 (diff) | |
download | git-80bfd76af7ac817d4a4b9b7d54485076897c9a67.tar.gz git-80bfd76af7ac817d4a4b9b7d54485076897c9a67.tar.xz |
tests: shell negation portability fix
Commit 969c8775 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 of bbf08124, which fixed
several similar cases).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-x | t/t4128-apply-root.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t4128-apply-root.sh b/t/t4128-apply-root.sh index bc7a8a868..8f6aea48d 100755 --- a/t/t4128-apply-root.sh +++ b/t/t4128-apply-root.sh @@ -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' |