From 3937f58b74e4b764e76ade523fec8497aa1b0611 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 12 Sep 2021 10:53:34 +0000 Subject: fetch: fix and test v2 epoch detection It was also totally broken by the change to use manifest.js.gz for v1 :x Fixes: ffb7fbda6869db4b ("fetch: use manifest.js.gz for v1") --- lib/PublicInbox/Fetch.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/Fetch.pm') diff --git a/lib/PublicInbox/Fetch.pm b/lib/PublicInbox/Fetch.pm index 2c6ae86a..4d501108 100644 --- a/lib/PublicInbox/Fetch.pm +++ b/lib/PublicInbox/Fetch.pm @@ -148,7 +148,7 @@ EOM $cmd = [ @$torsocks, fetch_cmd($lei, $opt) ]; } else { my $e_uri = $ibx_uri->clone; - my ($epath) = ($d =~ m!/(git/[0-9]+\.git)\z!); + my ($epath) = ($d =~ m!(/git/[0-9]+\.git)\z!); defined($epath) or die "BUG: $d is not an epoch to clone\n"; $e_uri->path($ibx_uri->path.$epath); -- cgit v1.2.3-24-ge0c7