]> git.ipfire.org Git - thirdparty/git.git/commit
t6050: avoid pipes with upstream Git commands
authorChizoba ODINAKA <chizobajames21@gmail.com>
Tue, 22 Oct 2024 01:27:01 +0000 (02:27 +0100)
committerTaylor Blau <me@ttaylorr.com>
Tue, 22 Oct 2024 16:47:27 +0000 (12:47 -0400)
commit9e362dd060c1ffdba958225f763db4bf9ba451cc
treea63286f254b7ee2e0dc291871066f2a1be4a2f69
parentef8ce8f3d4344fd3af049c17eeba5cd20d98b69f
t6050: avoid pipes with upstream Git commands

In pipes, the exit code of a chain of commands is determined by
the final command. In order not to miss the exit code of a failed
Git command, avoid pipes instead write output of Git commands
into a file.
For better debugging experience, instances of "grep" were changed
to "test_grep". "test_grep" provides more context in case of a
failed "grep".

Signed-off-by: Chizoba ODINAKA <chizobajames21@gmail.com>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
t/t6050-replace.sh