summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-04-28 22:50:02 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-04-28 22:50:02 (GMT)
commit0ccf0bafff5759c821f0f2aba0a63c567007d6a7 (patch)
tree52bd53ffde2bd28b2caf29927b6a23fc33bc1651
parent25b336421f7393f54bada27f60658fdfe7270215 (diff)
parente892a56845dfc806e384574884175dea964b359c (diff)
downloadgit-0ccf0bafff5759c821f0f2aba0a63c567007d6a7.zip
git-0ccf0bafff5759c821f0f2aba0a63c567007d6a7.tar.gz
git-0ccf0bafff5759c821f0f2aba0a63c567007d6a7.tar.bz2
Merge branch 'ds/t5319-touch-fix'
Tests update to use "test-chmtime" instead of "touch -t". * ds/t5319-touch-fix: t5319: replace 'touch -m' with 'test-tool chmtime'
-rwxr-xr-xt/t5319-multi-pack-index.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/t/t5319-multi-pack-index.sh b/t/t5319-multi-pack-index.sh
index 22240fd..030a722 100755
--- a/t/t5319-multi-pack-index.sh
+++ b/t/t5319-multi-pack-index.sh
@@ -526,10 +526,10 @@ test_expect_success 'repack with minimum size does not alter existing packs' '
cd dup &&
rm -rf .git/objects/pack &&
mv .git/objects/pack-backup .git/objects/pack &&
- touch -m -t 201901010000 .git/objects/pack/pack-D* &&
- touch -m -t 201901010001 .git/objects/pack/pack-C* &&
- touch -m -t 201901010002 .git/objects/pack/pack-B* &&
- touch -m -t 201901010003 .git/objects/pack/pack-A* &&
+ test-tool chmtime =-5 .git/objects/pack/pack-D* &&
+ test-tool chmtime =-4 .git/objects/pack/pack-C* &&
+ test-tool chmtime =-3 .git/objects/pack/pack-B* &&
+ test-tool chmtime =-2 .git/objects/pack/pack-A* &&
ls .git/objects/pack >expect &&
MINSIZE=$(test-tool path-utils file-size .git/objects/pack/*pack | sort -n | head -n 1) &&
git multi-pack-index repack --batch-size=$MINSIZE &&