summaryrefslogtreecommitdiff
path: root/t/t7501-commit.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2008-05-14 00:01:22 -0400
committerJunio C Hamano <gitster@pobox.com>2008-05-13 21:44:48 -0700
commitbbf08124e0a87658a76b53a05d67227fa3b4e7b9 (patch)
treee3eb0c8faee5837f0f0eefb8f831c068f67a2705 /t/t7501-commit.sh
parent64c0d71ce91696dfe5beb4b51e3233e56c857290 (diff)
downloadgit-bbf08124e0a87658a76b53a05d67227fa3b4e7b9.tar.gz
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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7501-commit.sh')
-rwxr-xr-xt/t7501-commit.sh2
1 files changed, 1 insertions, 1 deletions
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" \