]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t5302-pack-index.sh
t5300, t5302, t5303: Do not use /dev/zero
[thirdparty/git.git] / t / t5302-pack-index.sh
index e6f70d474f2f855d3b2b40eed526e4873b3288d5..77982cdeacff246580993f03fedbc6dea4d25f0d 100755 (executable)
@@ -208,7 +208,7 @@ test_expect_success \
      obj=`git hash-object file_001` &&
      nr=`index_obj_nr ".git/objects/pack/pack-${pack1}.idx" $obj` &&
      chmod +w ".git/objects/pack/pack-${pack1}.idx" &&
-     dd if=/dev/zero of=".git/objects/pack/pack-${pack1}.idx" conv=notrunc \
+     printf xxxx | dd of=".git/objects/pack/pack-${pack1}.idx" conv=notrunc \
         bs=1 count=4 seek=$((8 + 256 * 4 + `wc -l <obj-list` * 20 + $nr * 4)) &&
      ( while read obj
        do git cat-file -p $obj >/dev/null || exit 1