diff options
author | Johannes Sixt <j6t@kdbg.org> | 2016-09-05 21:00:47 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-09-07 11:35:08 -0700 |
commit | c00bfc9d1be8ae45c4d321b1cb02f146ce670f33 (patch) | |
tree | 2f3a30997c6ce969ef7de8aa54bc75e7061e4f10 /object.c | |
parent | Git 2.9.3 (diff) | |
download | tgif-c00bfc9d1be8ae45c4d321b1cb02f146ce670f33.tar.xz |
t9903: fix broken && chain
We might wonder why our && chain check does not catch this case:
The && chain check uses a strange exit code with the expectation that
the second or later part of a broken && chain would not exit with this
particular code.
This expectation does not work in this case because __git_ps1, being
the first command in the second part of the broken && chain, records
the current exit code, does its work, and finally returns to the caller
with the recorded exit code. This fools our && chain check.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'object.c')
0 files changed, 0 insertions, 0 deletions