summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2019-07-31 05:37:36 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-07-31 20:14:04 (GMT)
commitcc2649ae2dac565202bb9041cbb54b29e9f501b3 (patch)
tree7418b3a426960292eac627fb2a4b29f55818012f
parent026dd738a6e5f1e42ef0f390feacb5ed6acc4ee8 (diff)
downloadgit-cc2649ae2dac565202bb9041cbb54b29e9f501b3.zip
git-cc2649ae2dac565202bb9041cbb54b29e9f501b3.tar.gz
git-cc2649ae2dac565202bb9041cbb54b29e9f501b3.tar.bz2
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>
-rwxr-xr-xt/t7700-repack.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t7700-repack.sh b/t/t7700-repack.sh
index 0e9af83..8d9a358 100755
--- a/t/t7700-repack.sh
+++ b/t/t7700-repack.sh
@@ -243,6 +243,7 @@ test_expect_success 'no bitmaps created if .keep files present' '
pack=$(ls bare.git/objects/pack/*.pack) &&
test_path_is_file "$pack" &&
keep=${pack%.pack}.keep &&
+ test_when_finished "rm -f \"\$keep\"" &&
>"$keep" &&
git -C bare.git repack -ad &&
find bare.git/objects/pack/ -type f -name "*.bitmap" >actual &&