diff options
author | Denton Liu <liu.denton@gmail.com> | 2019-11-27 11:53:24 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-11-29 13:20:14 -0800 |
commit | 946d2353a36a6e1ce86e0bcade7ebd304d1c67a8 (patch) | |
tree | 289373f785dd7418a8563fdf76e4cef8db6b25f6 /t/t0013/shattered-1.pdf | |
parent | t3600: comment on inducing SIGPIPE in `git rm` (diff) | |
download | tgif-946d2353a36a6e1ce86e0bcade7ebd304d1c67a8.tar.xz |
t4015: stop losing return codes of git commands
Currently, there are two ways where the return codes of git commands are
lost. The first way is when a command is in the upstream of a pipe. In a
pipe, only the return code of the last command is used. Thus, all other
commands will have their return codes masked. Rewrite pipes so that
there are no git commands upstream.
The other way is when a command is in a non-assignment command
substitution. The return code will be lost in favour of the surrounding
command's. Rewrite instances of this so that git commands are either run
on their own or in an assignment-only command substitution.
Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0013/shattered-1.pdf')
0 files changed, 0 insertions, 0 deletions