Skip to content

Commit cc2649a

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 026dd73 commit cc2649a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

t/t7700-repack.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ test_expect_success 'no bitmaps created if .keep files present' '
243243
pack=$(ls bare.git/objects/pack/*.pack) &&
244244
test_path_is_file "$pack" &&
245245
keep=${pack%.pack}.keep &&
246+
test_when_finished "rm -f \"\$keep\"" &&
246247
>"$keep" &&
247248
git -C bare.git repack -ad &&
248249
find bare.git/objects/pack/ -type f -name "*.bitmap" >actual &&

0 commit comments

Comments
 (0)