t0003: call dd with portable blocksize

The command `dd bs=101M count=1` is not portable, e.g. dd shipped with MacOs does not understand the 'M'. Use `dd bs=1048576 count=101`, which achives the same, instead. Signed-off-by: Torsten Bögershausen <tboegi@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Torsten Bögershausen committed Jan 22, 2023 at 07:28 UTC 5458ba0a4d2c65ddf7c844fd976906e04f61569a
1 file changed +2 -2
t/t0003-attributes.sh
+2 -2
@@ -363,7 +363,7 @@ test_expect_success 'large attributes line ignores trailing content in tree' '
363
364 test_expect_success EXPENSIVE 'large attributes file ignored in tree' '
365 test_when_finished "rm .gitattributes" &&
366 - dd if=/dev/zero of=.gitattributes bs=101M count=1 2>/dev/null &&
366 + dd if=/dev/zero of=.gitattributes bs=1048576 count=101 2>/dev/null &&
367 git check-attr --all path >/dev/null 2>err &&
368 echo "warning: ignoring overly large gitattributes file ${SQ}.gitattributes${SQ}" >expect &&
369 test_cmp expect err
@@ -391,7 +391,7 @@ test_expect_success 'large attributes line ignores trailing content in index' '
391
392 test_expect_success EXPENSIVE 'large attributes file ignored in index' '
393 test_when_finished "git update-index --remove .gitattributes" &&
394 - blob=$(dd if=/dev/zero bs=101M count=1 2>/dev/null | git hash-object -w --stdin) &&
394 + blob=$(dd if=/dev/zero bs=1048576 count=101 2>/dev/null | git hash-object -w --stdin) &&
395 git update-index --add --cacheinfo 100644,$blob,.gitattributes &&
396 git check-attr --cached --all path >/dev/null 2>err &&
397 echo "warning: ignoring overly large gitattributes blob ${SQ}.gitattributes${SQ}" >expect &&