]> git.ipfire.org Git - thirdparty/git.git/commitdiff
p5326: create missing 'perf-tag' tag
authorTaylor Blau <me@ttaylorr.com>
Tue, 14 Sep 2021 22:06:09 +0000 (18:06 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 14 Sep 2021 23:34:18 +0000 (16:34 -0700)
Some of the tests in test_full_bitmap rely on having a tag named
perf-tag in place. We could create it in test_full_bitmap(), but we want
to have it in place before the repack starts.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/perf/p5326-multi-pack-bitmaps.sh

index 5845109ac787ac78e11db03f063db5cb52955710..51b5636259dac44d069d81d8e8f953ef7a0a16db 100755 (executable)
@@ -10,6 +10,12 @@ test_expect_success 'enable multi-pack index' '
        git config core.multiPackIndex true
 '
 
+# we need to create the tag up front such that it is covered by the repack and
+# thus by generated bitmaps.
+test_expect_success 'create tags' '
+       git tag --message="tag pointing to HEAD" perf-tag HEAD
+'
+
 test_perf 'setup multi-pack index' '
        git repack -ad &&
        git multi-pack-index write --bitmap