From: Eric Sunshine Date: Mon, 2 Jul 2018 00:23:50 +0000 (-0400) Subject: t7201: drop pointless "exit 0" at end of subshell X-Git-Tag: v2.19.0-rc0~13^2~28 X-Git-Url: http://git.bitbasher.net/?a=commitdiff_plain;h=e7eb15faca767cd00acf722ce0382538b7add29a;p=git.git t7201: drop pointless "exit 0" at end of subshell This test employs a for-loop inside a subshell and correctly aborts the loop and fails the test overall (via "exit 1") if any iteration of the for-loop fails. Otherwise, it exits the subshell with an explicit but entirely unnecessary "exit 0", presumably to indicate that all iterations of the loop succeeded. The &&-chain is broken between the for-loop and the "exit 0". Rather than fixing the &&-chain, just drop the pointless "exit 0". Signed-off-by: Eric Sunshine Signed-off-by: Junio C Hamano --- diff --git a/t/t7201-co.sh b/t/t7201-co.sh index ab9da61da3..8d8a63a24b 100755 --- a/t/t7201-co.sh +++ b/t/t7201-co.sh @@ -673,7 +673,6 @@ test_expect_success 'custom merge driver with checkout -m' ' do grep $t arm || exit 1 done - exit 0 ) && mv arm expect &&