summaryrefslogtreecommitdiff
path: root/t/helper/test-bloom.c
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2020-07-29 23:13:50 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-07-30 16:16:45 (GMT)
commit094a685cd7312da3e89ee57e6a6f2b8aaf328718 (patch)
tree0a3fc2a61614f146bac36a71a9e473268271e959 /t/helper/test-bloom.c
parent3ddac3d691c3633cd4d9a74c07e3b2301f546f77 (diff)
downloadgit-094a685cd7312da3e89ee57e6a6f2b8aaf328718.zip
git-094a685cd7312da3e89ee57e6a6f2b8aaf328718.tar.gz
git-094a685cd7312da3e89ee57e6a6f2b8aaf328718.tar.bz2
t: make test-bloom initialize repository
The bloom filter code relies on reading object IDs using parse_oid_hex. In order to make that work with an appropriate size, we need to have initialized the repository's hash algorithm. Since the values we're processing depend on the repository in use, let's set up the repository when we run the test helper. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Reviewed-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-bloom.c')
-rw-r--r--t/helper/test-bloom.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/helper/test-bloom.c b/t/helper/test-bloom.c
index f0aa80b..5e77d56 100644
--- a/t/helper/test-bloom.c
+++ b/t/helper/test-bloom.c
@@ -50,6 +50,8 @@ static const char *bloom_usage = "\n"
int cmd__bloom(int argc, const char **argv)
{
+ setup_git_directory();
+
if (argc < 2)
usage(bloom_usage);