3 # Copyright (c) 2008 Johannes E. Schindelin
6 test_description='prune'
9 test_expect_success setup '
14 git commit -m initial &&
19 test_expect_success 'prune stale packs' '
21 orig_pack=$(echo .git/objects/pack/*.pack) &&
22 : > .git/objects/tmp_1.pack &&
23 : > .git/objects/tmp_2.pack &&
24 test-chmtime -86501 .git/objects/tmp_1.pack &&
25 git prune --expire 1.day &&
27 test -f .git/objects/tmp_2.pack &&
28 ! test -f .git/objects/tmp_1.pack