]> git.ipfire.org Git - thirdparty/git.git/commit
t3404: avoid losing exit status with focus on `git show` and `git cat-file`
authorUsman Akinyemi <usmanakinyemi202@gmail.com>
Sat, 12 Oct 2024 23:09:32 +0000 (23:09 +0000)
committerTaylor Blau <me@ttaylorr.com>
Mon, 14 Oct 2024 16:03:35 +0000 (12:03 -0400)
commitc8fbae25c338b28143e79b253f12567ea48fcbb3
tree4beed77299c54bdcc1bdf3a6c2b84198d3a13a9d
parentef8ce8f3d4344fd3af049c17eeba5cd20d98b69f
t3404: avoid losing exit status with focus on `git show` and `git cat-file`

The exit code of the preceding command in a pipe is disregarded. So
if that preceding command is a Git command that fails, the test would
not fail. Instead, by saving the output of that Git command to a file,
and removing the pipe, we make sure the test will fail if that Git
command fails. This particular patch focuses on all `git show` and
some instances of `git cat-file`.

Signed-off-by: Usman Akinyemi <usmanakinyemi202@gmail.com>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
t/t3404-rebase-interactive.sh