t2018: don't lose return code of git commands
commit62e80fcb480d388777a9d6d96d977e02c3e7dd36
authorDenton Liu <liu.denton@gmail.com>
Tue, 7 Jan 2020 04:53:03 +0000 (6 23:53 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Jan 2020 20:56:02 +0000 (27 12:56 -0800)
treef0cf7923d069cbe2c1183e803b43fd7ad4e0247a
parent30c0367668ab919cc1bca3cff73820f77b573765
t2018: don't lose return code of git commands

Fix invocations of git commands so their exit codes are not lost
within non-assignment command substitutions.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t2018-checkout-branch.sh