From: Elia Pinto Date: Fri, 6 Jun 2014 14:56:00 +0000 (-0700) Subject: t/t5538-push-shallow.sh: avoid "test -a/-o " X-Git-Tag: v2.1.0-rc0~79^2~4 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/754b574cf937a04bc0052395c2e6066d427e2798 t/t5538-push-shallow.sh: avoid "test -a/-o " The construct is error-prone; "test" being built-in in most modern shells, the reason to avoid "test && test " spawning one extra process by using a single "test -a " no longer exists. Signed-off-by: Elia Pinto Reviewed-by: Matthieu Moy Signed-off-by: Junio C Hamano --- 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