summaryrefslogtreecommitdiff
path: root/compat/unsetenv.c
diff options
context:
space:
mode:
authorLibravatar Denton Liu <liu.denton@gmail.com>2019-11-27 11:53:18 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-11-29 13:20:14 -0800
commit3b737381d880bd6db1b09d8721f806774931853a (patch)
treecdd494dd455b0fed305207c686997fac99c8cfbd /compat/unsetenv.c
parentt3600: use test_line_count() where possible (diff)
downloadtgif-3b737381d880bd6db1b09d8721f806774931853a.tar.xz
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 <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/unsetenv.c')
0 files changed, 0 insertions, 0 deletions