From: Alexander Strasser Date: Mon, 16 Jul 2012 20:44:30 +0000 (+0200) Subject: t4012: Break up pipe into serial redirections X-Git-Tag: v1.7.12-rc0~17^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4220afd7238c94f33bde55cf3fd6c84275eebe9a;p=thirdparty%2Fgit.git t4012: Break up pipe into serial redirections Do not hide possible git errors by masking its process exit status. Signed-off-by: Alexander Strasser Signed-off-by: Junio C Hamano --- 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/" broken && if git apply --stat --summary broken 2>detected then echo unhappy - should have detected an error