t7700: clean up .keep file in bitmap-writing test
After our test snippet finishes, the .keep file is left in place, making it hard to do further tests of the auto-bitmap-writing code (since it suppresses the feature completely). Let's clean it up. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jeff King committed
Jul 31, 2019 at 01:37 UTC
cc2649ae2dac565202bb9041cbb54b29e9f501b3
1 file changed
+1
t/t7700-repack.sh
+1
@@ -243,6 +243,7 @@ test_expect_success 'no bitmaps created if .keep files present' '
243
pack=$(ls bare.git/objects/pack/*.pack) &&
244
test_path_is_file "$pack" &&
245
keep=${pack%.pack}.keep &&
246
+ test_when_finished "rm -f \"\$keep\"" &&
247
>"$keep" &&
248
git -C bare.git repack -ad &&
249
find bare.git/objects/pack/ -type f -name "*.bitmap" >actual &&