Merge branch 'jn/fast-import-blob-access' into next

* jn/fast-import-blob-access:
  t9300: avoid short reads from dd
This commit is contained in:
Junio C Hamano
2010-12-12 23:22:18 -08:00

View File

@@ -1902,7 +1902,7 @@ test_expect_success PIPE 'R: copy using cat-file' '
read blob_id type size <&3 &&
echo "$blob_id $type $size" >response &&
dd of=blob bs=$size count=1 <&3 &&
dd of=blob bs=1 count=$size <&3 &&
read newline <&3 &&
cat <<EOF &&
@@ -1953,7 +1953,7 @@ test_expect_success PIPE 'R: print blob mid-commit' '
EOF
read blob_id type size <&3 &&
dd of=actual bs=$size count=1 <&3 &&
dd of=actual bs=1 count=$size <&3 &&
read newline <&3 &&
echo
@@ -1988,7 +1988,7 @@ test_expect_success PIPE 'R: print staged blob within commit' '
echo "cat-blob $to_get" &&
read blob_id type size <&3 &&
dd of=actual bs=$size count=1 <&3 &&
dd of=actual bs=1 count=$size <&3 &&
read newline <&3 &&
echo deleteall