File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -443,7 +443,7 @@ test_expect_success 'repack with minimum size does not alter existing packs' '
443
443
touch -m -t 201901010002 .git/objects/pack/pack-B* &&
444
444
touch -m -t 201901010003 .git/objects/pack/pack-A* &&
445
445
ls .git/objects/pack >expect &&
446
- MINSIZE=$(ls -l .git/objects/pack/*pack | awk "{print \$5;}" | sort -n | head -n 1) &&
446
+ MINSIZE=$(test-tool path-utils file-size .git/objects/pack/*pack | sort -n | head -n 1) &&
447
447
git multi-pack-index repack --batch-size=$MINSIZE &&
448
448
ls .git/objects/pack >actual &&
449
449
test_cmp expect actual
@@ -455,7 +455,7 @@ test_expect_success 'repack creates a new pack' '
455
455
cd dup &&
456
456
ls .git/objects/pack/*idx >idx-list &&
457
457
test_line_count = 5 idx-list &&
458
- THIRD_SMALLEST_SIZE=$(ls -l .git/objects/pack/*pack | awk "{print \$5;}" | sort -n | head -n 3 | tail -n 1) &&
458
+ THIRD_SMALLEST_SIZE=$(test-tool path-utils file-size .git/objects/pack/*pack | sort -n | head -n 3 | tail -n 1) &&
459
459
BATCH_SIZE=$(($THIRD_SMALLEST_SIZE + 1)) &&
460
460
git multi-pack-index repack --batch-size=$BATCH_SIZE &&
461
461
ls .git/objects/pack/*idx >idx-list &&
You can’t perform that action at this time.
0 commit comments