Skip to content

Commit 4399345

Browse files
devzero2000gitster
authored andcommitted
t/t4102-apply-rename.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 66e1fe7 commit 4399345

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t4102-apply-rename.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ EOF
5252

5353
test_expect_success 'apply copy' \
5454
'git apply --index --stat --summary --apply test-patch &&
55-
test "$(cat bar)" = "This is bar" -a "$(cat foo)" = "This is foo"'
55+
test "$(cat bar)" = "This is bar" && test "$(cat foo)" = "This is foo"'
5656

5757
test_done

0 commit comments

Comments
 (0)