summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorElia Pinto <gitter.spiros@gmail.com>2014-06-06 16:56:00 +0200
committerJunio C Hamano <gitster@pobox.com>2014-06-10 00:53:41 +0200
commit754b574cf937a04bc0052395c2e6066d427e2798 (patch)
tree4a3cda32b96e3ac13d6edffad5b0323e0a5a5072 /t
parentt/t5403-post-checkout-hook.sh: avoid "test <cond> -a/-o <cond>" (diff)
downloadgit-754b574cf937a04bc0052395c2e6066d427e2798.tar.xz
git-754b574cf937a04bc0052395c2e6066d427e2798.zip
t/t5538-push-shallow.sh: avoid "test <cond> -a/-o <cond>"
The construct is error-prone; "test" being built-in in most modern shells, the reason to avoid "test <cond> && test <cond>" spawning one extra process by using a single "test <cond> -a <cond>" no longer exists. Signed-off-by: Elia Pinto <gitter.spiros@gmail.com> Reviewed-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t5538-push-shallow.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5538-push-shallow.sh b/t/t5538-push-shallow.sh
index 8e54ac5746..63d9ca9f10 100755
--- a/t/t5538-push-shallow.sh
+++ b/t/t5538-push-shallow.sh
@@ -121,7 +121,7 @@ EOF
)
'
-if test -n "$NO_CURL" -o -z "$GIT_TEST_HTTPD"; then
+if test -n "$NO_CURL" || test -z "$GIT_TEST_HTTPD"; then
say 'skipping remaining tests, git built without http support'
test_done
fi