diff options
author | Eric Wong <e@80x24.org> | 2022-11-28 05:31:45 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-11-28 23:38:56 +0000 |
commit | 3c499dbc312a7cd32da4664a3cfad6500ab98e8d (patch) | |
tree | 98697a703fad5a047a46d6cfeb2d796b3c0ee52b /lib/PublicInbox | |
parent | 195e26acf93f5f13bf3dd33c0370b4fb7426377b (diff) | |
download | public-inbox-3c499dbc312a7cd32da4664a3cfad6500ab98e8d.tar.gz |
We can support absolute paths to avoid surprising behaviors, but relative paths are preferred since the goal is to be accessible over the "dumb" HTTP git transport (the dumb transport is uses less memory and CPU on the server).
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r-- | lib/PublicInbox/LeiMirror.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiMirror.pm b/lib/PublicInbox/LeiMirror.pm index 6efe23fa..2f96058a 100644 --- a/lib/PublicInbox/LeiMirror.pm +++ b/lib/PublicInbox/LeiMirror.pm @@ -882,7 +882,8 @@ sub do_mirror { # via wq_io_do or public-inbox-clone if (defined(my $os = $lei->{opt}->{objstore})) { $os = 'objstore' if $os eq ''; # --objstore w/o args - $self->{-objstore} = "$self->{dst}/$os"; + $os = "$self->{dst}/$os" if $os !~ m!\A/!; + $self->{-objstore} = $os; } local $LIVE; my $iv = $lei->{opt}->{'inbox-version'} // |