summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2008-10-13 09:35:59 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-10-17 18:30:54 (GMT)
commit72130808173d3dfee85f2a29548fa9fec33a5351 (patch)
tree09be2c953557aa9429f9a2a94caeab512cb2907c
parent8ed0a740dd42bd0724aebed6e3b07c4ea2a2d5e8 (diff)
downloadgit-72130808173d3dfee85f2a29548fa9fec33a5351.zip
git-72130808173d3dfee85f2a29548fa9fec33a5351.tar.gz
git-72130808173d3dfee85f2a29548fa9fec33a5351.tar.bz2
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>
-rwxr-xr-xt/t4128-apply-root.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t4128-apply-root.sh b/t/t4128-apply-root.sh
index bc7a8a8..8f6aea4 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'