Browse Source

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>
maint
brian m. carlson 5 years ago committed by Junio C Hamano
parent
commit
094a685cd7
  1. 2
      t/helper/test-bloom.c

2
t/helper/test-bloom.c

@ -50,6 +50,8 @@ static const char *bloom_usage = "\n" @@ -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);


Loading…
Cancel
Save