Skip to content

Commit 754b574

Browse files
devzero2000gitster
authored andcommitted
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 <[email protected]> Reviewed-by: Matthieu Moy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7281f36 commit 754b574

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t5538-push-shallow.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ EOF
121121
)
122122
'
123123

124-
if test -n "$NO_CURL" -o -z "$GIT_TEST_HTTPD"; then
124+
if test -n "$NO_CURL" || test -z "$GIT_TEST_HTTPD"; then
125125
say 'skipping remaining tests, git built without http support'
126126
test_done
127127
fi

0 commit comments

Comments
 (0)