File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -442,7 +442,7 @@ test_expect_success 'large attributes line ignores trailing content in tree' '
442
442
443
443
test_expect_success EXPENSIVE ' large attributes file ignored in tree' '
444
444
test_when_finished "rm .gitattributes" &&
445
- dd if=/dev/zero of=.gitattributes bs=101M count=1 2>/dev/null &&
445
+ dd if=/dev/zero of=.gitattributes bs=1048576 count=101 2>/dev/null &&
446
446
git check-attr --all path >/dev/null 2>err &&
447
447
echo "warning: ignoring overly large gitattributes file ${SQ}.gitattributes${SQ}" >expect &&
448
448
test_cmp expect err
@@ -470,7 +470,7 @@ test_expect_success 'large attributes line ignores trailing content in index' '
470
470
471
471
test_expect_success EXPENSIVE ' large attributes file ignored in index' '
472
472
test_when_finished "git update-index --remove .gitattributes" &&
473
- blob=$(dd if=/dev/zero bs=101M count=1 2>/dev/null | git hash-object -w --stdin) &&
473
+ blob=$(dd if=/dev/zero bs=1048576 count=101 2>/dev/null | git hash-object -w --stdin) &&
474
474
git update-index --add --cacheinfo 100644,$blob,.gitattributes &&
475
475
git check-attr --cached --all path >/dev/null 2>err &&
476
476
echo "warning: ignoring overly large gitattributes blob ${SQ}.gitattributes${SQ}" >expect &&
You can’t perform that action at this time.
0 commit comments