[PATCH 04/24] t9300 (fast-import): check exit status from upstream of pipes
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
---
t/t9300-fast-import.sh | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/t/t9300-fast-import.sh b/t/t9300-fast-import.sh
index 735ac83..47339a3 100755
--- a/t/t9300-fast-import.sh
+++ b/t/t9300-fast-import.sh
@@ -97,7 +97,8 @@ initial
EOF
test_expect_success \
'A: verify commit' \
- 'git cat-file commit master | sed 1d >actual &&
+ 'git cat-file commit master >commit &&
+ sed 1d <commit >actual &&
test_cmp expect actual'
cat >expect <<EOF
@@ -107,7 +108,8 @@ cat >expect <<EOF
EOF
test_expect_success \
'A: verify tree' \
- 'git cat-file -p master^{tree} | sed "s/ [0-9a-f]* / /" >actual &&
+ 'git cat-file -p master^{tree} >tree &&
+ sed "s/ [0-9a-f]* / /" <tree >actual &&
test_cmp expect actual'
echo "$file2_data" >expect
--
1.7.2.3