Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
t4012: use 'printf' instead of 'dd' to generate a binary file
[gitweb.git]
/
t
/
t4012-diff-binary.sh
diff --git
a/t/t4012-diff-binary.sh
b/t/t4012-diff-binary.sh
index 7b0e759c74bac0fbff2a4bd7ec4c6f92df70e2c0..077870e95dda56b47d8cad2516402ab78a8d0c55 100755
(executable)
--- a/
t/t4012-diff-binary.sh
+++ b/
t/t4012-diff-binary.sh
@@
-131,7
+131,7
@@
cat >expect <<EOF
EOF
test_expect_success 'diff --stat with binary files and big change count' '
-
echo X | dd of=binfile bs=1k seek=1
&&
+
printf "\01\00%1024d" 1 >binfile
&&
git add binfile &&
i=0 &&
while test $i -lt 10000; do