diff options
author | Eric Wong <e@80x24.org> | 2023-03-21 23:07:19 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-03-25 09:37:43 +0000 |
commit | 4f7ee209e1e840d8ae3af24eab886d42edb55d91 (patch) | |
tree | 2f6b8f7b424cd101ff075161c8b52e616df19ee1 /lib/PublicInbox/Config.pm | |
parent | 4873f1e033b5fb1260a3cb9c857c79dce2780983 (diff) | |
download | public-inbox-4f7ee209e1e840d8ae3af24eab886d42edb55d91.tar.gz |
We'll also support the $base arg of File::Spec->rel2abs since it should make codesearch indexing easier.
Diffstat (limited to 'lib/PublicInbox/Config.pm')
-rw-r--r-- | lib/PublicInbox/Config.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Config.pm b/lib/PublicInbox/Config.pm index 4065b256..e095ecd1 100644 --- a/lib/PublicInbox/Config.pm +++ b/lib/PublicInbox/Config.pm @@ -371,7 +371,7 @@ sub git_bool { # is sufficient and doesn't leave "/.." or "/../" sub rel2abs_collapsed { require File::Spec; - my $p = File::Spec->rel2abs($_[-1]); + my $p = File::Spec->rel2abs(@_); return $p if substr($p, -3, 3) ne '/..' && index($p, '/../') < 0; require Cwd; Cwd::abs_path($p); |