aboutsummaryrefslogtreecommitdiffstats
path: root/t/t7501-commit-basic-functionality.sh
diff options
context:
space:
mode:
authorDenton Liu <liu.denton@gmail.com>2019-11-27 11:53:38 -0800
committerJunio C Hamano <gitster@pobox.com>2019-11-29 13:20:15 -0800
commit763b47bafab6f781dc52461985b3300d447d1332 (patch)
tree7b8d8c808406aedce8c04446fe9fd212d6e647f6 /t/t7501-commit-basic-functionality.sh
parentt5703: simplify one-time-sed generation logic (diff)
downloadgit-763b47bafab6f781dc52461985b3300d447d1332.tar.gz
git-763b47bafab6f781dc52461985b3300d447d1332.zip
t5703: 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 such that git commands are 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/t7501-commit-basic-functionality.sh')
0 files changed, 0 insertions, 0 deletions