diff options
author | Alexander Strasser <eclipse7@gmx.net> | 2012-07-16 22:44:30 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-07-16 13:49:58 -0700 |
commit | 4220afd7238c94f33bde55cf3fd6c84275eebe9a (patch) | |
tree | c03bf6dd180901b94bd05cdec7d4c7ddbe9e60d6 /t/t4012-diff-binary.sh | |
parent | 4a2b716e220f0f5369c386d7257b87399d424a3f (diff) | |
download | git-4220afd7238c94f33bde55cf3fd6c84275eebe9a.tar.gz |
t4012: Break up pipe into serial redirections
Do not hide possible git errors by masking its process
exit status.
Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4012-diff-binary.sh')
-rwxr-xr-x | t/t4012-diff-binary.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t4012-diff-binary.sh b/t/t4012-diff-binary.sh index 60c2f6c36f..daf8234614 100755 --- a/t/t4012-diff-binary.sh +++ b/t/t4012-diff-binary.sh @@ -64,7 +64,8 @@ test_expect_success 'apply --numstat understands diff --binary format' ' # apply needs to be able to skip the binary material correctly # in order to report the line number of a corrupt patch. test_expect_success 'apply detecting corrupt patch correctly' ' - git diff | sed -e "s/-CIT/xCIT/" >broken && + git diff >output && + sed -e "s/-CIT/xCIT/" <output >broken && if git apply --stat --summary broken 2>detected then echo unhappy - should have detected an error |