From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id 9CEA01F5AE for ; Wed, 29 Jul 2020 23:14:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727896AbgG2XOr (ORCPT ); Wed, 29 Jul 2020 19:14:47 -0400 Received: from injection.crustytoothpaste.net ([192.241.140.119]:41032 "EHLO injection.crustytoothpaste.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726718AbgG2XOr (ORCPT ); Wed, 29 Jul 2020 19:14:47 -0400 Received: from camp.crustytoothpaste.net (unknown [IPv6:2001:470:b978:101:b610:a2f0:36c1:12e3]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by injection.crustytoothpaste.net (Postfix) with ESMTPSA id 3A5D16079A; Wed, 29 Jul 2020 23:14:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=crustytoothpaste.net; s=default; t=1596064486; bh=Ni60BVyy3697LdUPCNff0L0kAJ2/erkulVYjnf5hQSc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From:Reply-To: Subject:Date:To:CC:Resent-Date:Resent-From:Resent-To:Resent-Cc: In-Reply-To:References:Content-Type:Content-Disposition; b=K0xOziYcFSYiV1OpRGUsvAqvxvFqPzkfBF/9egvEkDW+/ZXh4m/tQThWEap6OP+P1 TFEU8f5sJv7O4TZMVrbKIfADK+IDM4H8EGdjfFW0libBTYIVtfbGXC5LRiJuNmiEag RsABurmdQVr3vkKg10DGnylI12wWVyN/HGtN5WJx/s43iuOvyegE2EqIAVNuDUtoPK zqHNFS7Kdqv8nEbhob6px1yGZ7oa57V5wrKtavpVNQXhlcWOpfC+1wOHs1MXO4L0Df m9/tb4Keek6rh+vloQpmUD857+HJXWAyZS/Tc5+6f3J7i7D3x8VFAWcglvjhJ372va si+F5opbtFPhp4M2Bxocy3BX2ijwsygxYM3NmRHuigr0CKPIySVxaGW/VA3sT+Uk9e BOe1hGlGqz7reH2i79mtbjSe9dkOlTPMTvEdgnbqCFW92r+I4BMv+tDwOFd4Bo63Ow JO3N7LOfTjhxpoxnz39NBzRg8s+EohOg5SKz6s92ao7GqiEbk04 From: "brian m. carlson" To: Cc: Eric Sunshine Subject: [PATCH v6 01/39] t: make test-bloom initialize repository Date: Wed, 29 Jul 2020 23:13:50 +0000 Message-Id: <20200729231428.3658647-2-sandals@crustytoothpaste.net> X-Mailer: git-send-email 2.28.0.163.g6104cc2f0b6 In-Reply-To: <20200729231428.3658647-1-sandals@crustytoothpaste.net> References: <20200728233446.3066485-1-sandals@crustytoothpaste.net> <20200729231428.3658647-1-sandals@crustytoothpaste.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org 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 --- t/helper/test-bloom.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/helper/test-bloom.c b/t/helper/test-bloom.c index f0aa80b98e..5e77d56f59 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);