From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 212D31F406 for ; Tue, 21 Nov 2023 18:53:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1700592839; bh=r4bNg2XOvGtHzCX9090BppfpzQMfavZvwDq3pkezOc8=; h=Date:From:To:Subject:References:In-Reply-To:From; b=PdIaa/h4Uc4v+uQYjseL7HXlONzWliQc3QM9+9LuNEQlkh5uHGBKoOqjxtlAV7R0U pPE/+R1BvkftPbWIKt2hAHEs4YweqHwsK+4yx+6yaVuC8BxAt2G5Z7aCfvu2iD5fxz p7zd/6hltUqzkOp62+bR2/1813R56YmF0fpKeh4Q= Date: Tue, 21 Nov 2023 18:53:58 +0000 From: Eric Wong To: meta@public-inbox.org Subject: [squash 4/3] t/cindex-join: fix alternates setup Message-ID: <20231121185358.M860010@dcvr> References: <20231121124315.1775613-1-e@80x24.org> <20231121124315.1775613-4-e@80x24.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231121124315.1775613-4-e@80x24.org> List-Id: We'll also disable GC since fetch/clone already leaves us with packs. --- Will squash this into 3/3 t/cindex-join.t | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/t/cindex-join.t b/t/cindex-join.t index fad30d93..0972afa4 100644 --- a/t/cindex-join.t +++ b/t/cindex-join.t @@ -30,19 +30,18 @@ while (my $url = shift @code) { fetch = +refs/*:refs/* mirror = true EOM - if (my $d = $code{$key}) { + if (my $d = $code{'mwrap-perl.git'}) { $d = File::Spec->abs2rel("$topdir/$d", 'objects'); write_file '>','objects/info/alternates',"$d/objects\n" } diag "mirroring coderepo: $url ..."; xsys_e qw(git fetch -q origin); - xsys_e qw(git --git-dir=. gc -q); }; } while (my ($url, $v, $ng) = splice(@inboxes, 0, 3)) { my ($key) = ($url =~ m!/([^/]+)\z!); - my @opt = (version => $v, tmpdir => "$tmpdir/$key"); + my @opt = (version => $v, tmpdir => "$tmpdir/$key" -no_gc => 1); $inboxes{$key} = create_inbox $key, @opt, sub { my ($im, $ibx) = @_; $im->done;