From 4f7ee209e1e840d8ae3af24eab886d42edb55d91 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 21 Mar 2023 23:07:19 +0000 Subject: admin: ensure resolved GIT_DIR is absolute We'll also support the $base arg of File::Spec->rel2abs since it should make codesearch indexing easier. --- script/public-inbox-convert | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script') diff --git a/script/public-inbox-convert b/script/public-inbox-convert index 42955a48..5f4f2020 100755 --- a/script/public-inbox-convert +++ b/script/public-inbox-convert @@ -75,7 +75,7 @@ if ($opt->{'index'}) { } local %ENV = (%$env, %ENV) if $env; my $new = { %$old }; -$new->{inboxdir} = $cfg->rel2abs_collapsed($new_dir); +$new->{inboxdir} = PublicInbox::Config::rel2abs_collapsed($new_dir); $new->{version} = 2; $new = PublicInbox::InboxWritable->new($new, { nproc => $opt->{jobs} }); $new->{-no_fsync} = 1 if !$opt->{fsync}; -- cgit v1.2.3-24-ge0c7