From 72130808173d3dfee85f2a29548fa9fec33a5351 Mon Sep 17 00:00:00 2001 From: Jeff King Date: Mon, 13 Oct 2008 05:35:59 -0400 Subject: [PATCH] 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 Signed-off-by: Junio C Hamano --- t/t4128-apply-root.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t4128-apply-root.sh b/t/t4128-apply-root.sh index bc7a8a8689..8f6aea48d8 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' -- 2.11.4.GIT