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>
Alexander Strasser committed
Jul 16, 2012 at 22:44 UTC
4220afd7238c94f33bde55cf3fd6c84275eebe9a
1 file changed
+2
-1
t/t4012-diff-binary.sh
+2
-1
@@ -64,7 +64,8 @@ test_expect_success 'apply --numstat understands diff --binary format' '
64
# apply needs to be able to skip the binary material correctly
65
# in order to report the line number of a corrupt patch.
66
test_expect_success 'apply detecting corrupt patch correctly' '
67
- git diff | sed -e "s/-CIT/xCIT/" >broken &&
67
+ git diff >output &&
68
+ sed -e "s/-CIT/xCIT/" <output >broken &&
69
if git apply --stat --summary broken 2>detected
70
then
71
echo unhappy - should have detected an error