unofficial mirror of meta@public-inbox.org
 help / color / mirror / Atom feed
From: Eric Wong <e@80x24.org>
To: meta@public-inbox.org
Subject: [squash 4/3] t/cindex-join: fix alternates setup
Date: Tue, 21 Nov 2023 18:53:58 +0000	[thread overview]
Message-ID: <20231121185358.M860010@dcvr> (raw)
In-Reply-To: <20231121124315.1775613-4-e@80x24.org>

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;

      reply	other threads:[~2023-11-21 18:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-21 12:43 [PATCH 0/3] cindex: rename `associate' to `join' Eric Wong
2023-11-21 12:43 ` [PATCH 1/3] cindex: avoid unneeded and redundant `local' calls Eric Wong
2023-11-21 12:43 ` [PATCH 2/3] doc/cindex: point no-fsync,dangerous to -index(1) Eric Wong
2023-11-21 12:43 ` [PATCH 3/3] cindex: rename --associate to --join, test w/ real repos Eric Wong
2023-11-21 18:53   ` Eric Wong [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://public-inbox.org/README

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231121185358.M860010@dcvr \
    --to=e@80x24.org \
    --cc=meta@public-inbox.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).