diff options
author | Denton Liu <liu.denton@gmail.com> | 2019-11-27 11:53:43 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-11-29 13:20:15 -0800 |
commit | 756ee7fc9fcf599e807a27e45a9d0fb89e8411a8 (patch) | |
tree | a29768d89384af5ad2ded875a5bfe1eff8a46f70 /usage.c | |
parent | t7501: remove spaces after redirect operators (diff) | |
download | tgif-756ee7fc9fcf599e807a27e45a9d0fb89e8411a8.tar.xz |
t7501: stop losing return codes of git commands
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 so that we will know if a
command fails.
In the 'interactive add' test case, we prepend a `test_must_fail` to
`git commit --interactive`. When there are no changes to commit,
`git commit` will exit with status code 1. Following along with the rest
of the file, we use `test_must_fail` to test for this case.
Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'usage.c')
0 files changed, 0 insertions, 0 deletions