mirror of
https://github.com/git/git.git
synced 2026-03-17 20:20:08 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user