summaryrefslogtreecommitdiff
path: root/convert.h
diff options
context:
space:
mode:
authorLibravatar Denton Liu <liu.denton@gmail.com>2019-11-27 11:53:13 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-11-29 13:20:14 -0800
commit29a40b5a678fc9014063988ab74d34d156dfb385 (patch)
tree916ac70e54593b21f89873ccafde87d44b42d4b9 /convert.h
parentt0090: stop losing return codes of git commands (diff)
downloadtgif-29a40b5a678fc9014063988ab74d34d156dfb385.tar.xz
t3301: 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. This patch fixes a real buggy test: in 'copy note with "git notes copy"', `git notes` was mistyped as `git note`. Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'convert.h')
0 files changed, 0 insertions, 0 deletions