From bbf08124e0a87658a76b53a05d67227fa3b4e7b9 Mon Sep 17 00:00:00 2001 From: Jeff King Date: Wed, 14 May 2008 00:01:22 -0400 Subject: fix bsd shell negation On some shells (notably /bin/sh on FreeBSD 6.1), the construct foo && ! bar | baz is true if foo && baz whereas for most other shells (such as bash) is true if foo && ! baz We can work around this by specifying foo && ! (bar | baz) which works everywhere. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- t/t7501-commit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't/t7501-commit.sh') diff --git a/t/t7501-commit.sh b/t/t7501-commit.sh index c0288f345f..89710afcb5 100755 --- a/t/t7501-commit.sh +++ b/t/t7501-commit.sh @@ -41,7 +41,7 @@ test_expect_success \ test_expect_success \ "using paths with --interactive" \ "echo bong-o-bong >file && - ! echo 7 | git-commit -m foo --interactive file" + ! (echo 7 | git-commit -m foo --interactive file)" test_expect_success \ "using invalid commit with -C" \ -- cgit v1.2.3