Skip to content

Commit 71da7dc

Browse files
committed
Merge branch 'ds/t5319-touch-fix' into pu
Tests update to use "test-chmtime" instead of "touch -t". * ds/t5319-touch-fix: t5319: replace 'touch -m' with 'test-tool chmtime'
2 parents 9e2556a + e892a56 commit 71da7dc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

t/t5319-multi-pack-index.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -526,10 +526,10 @@ test_expect_success 'repack with minimum size does not alter existing packs' '
526526
cd dup &&
527527
rm -rf .git/objects/pack &&
528528
mv .git/objects/pack-backup .git/objects/pack &&
529-
touch -m -t 201901010000 .git/objects/pack/pack-D* &&
530-
touch -m -t 201901010001 .git/objects/pack/pack-C* &&
531-
touch -m -t 201901010002 .git/objects/pack/pack-B* &&
532-
touch -m -t 201901010003 .git/objects/pack/pack-A* &&
529+
test-tool chmtime =-5 .git/objects/pack/pack-D* &&
530+
test-tool chmtime =-4 .git/objects/pack/pack-C* &&
531+
test-tool chmtime =-3 .git/objects/pack/pack-B* &&
532+
test-tool chmtime =-2 .git/objects/pack/pack-A* &&
533533
ls .git/objects/pack >expect &&
534534
MINSIZE=$(test-tool path-utils file-size .git/objects/pack/*pack | sort -n | head -n 1) &&
535535
git multi-pack-index repack --batch-size=$MINSIZE &&

0 commit comments

Comments
 (0)