t3600: stop losing return codes of git commands
authorDenton Liu <redacted>
Wed, 27 Nov 2019 19:53:18 +0000 (11:53 -0800)
committerJunio C Hamano <redacted>
Fri, 29 Nov 2019 21:20:14 +0000 (13:20 -0800)
commit3b737381d880bd6db1b09d8721f806774931853a
treecdd494dd455b0fed305207c686997fac99c8cfbd
parent0d913dfa7e41f31befb080512d2e8524338f1907
t3600: stop losing return codes of git commands

When a command is in a non-assignment command substitution, the return
code will be lost in favour of the surrounding command's. As a result,
if a git command fails, we won't know about it. Rewrite instances of
this so that git commands are either run in an assignment-only command
substitution so that their return codes aren't lost.

Signed-off-by: Denton Liu <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/t3600-rm.sh
git clone https://git.99rst.org/PROJECT