Documentation/public-inbox-clone.pod | 12 ++++++------ lib/PublicInbox/LeiMirror.pm | 2 +- diff --git a/Documentation/public-inbox-clone.pod b/Documentation/public-inbox-clone.pod index 5e6a6fe92f4322c9448cb3a0b0765d53dcc3b585..9bcb9967a38e9079295f739bdf227223d64605ec 100644 --- a/Documentation/public-inbox-clone.pod +++ b/Documentation/public-inbox-clone.pod @@ -89,9 +89,9 @@ Enables space savings when the remote C includes C entries as generated by grokmirror 2.x. -If C is not an absolute path, it is relative to the -C directory. If only C<--objstore=> is specified -where C is an empty string (C<"">), then C +If C does not start with C, C<./>, or C<../>, it is treated +as relative to the C directory. If only C<--objstore=> +is specified where C is an empty string (C<"">), then C (C<$DESTINATION/objstore>) is the implied value of C. =item --manifest=FILE @@ -99,9 +99,9 @@ When incrementally updating an existing mirror, load the given manifest (typically C) to speed up updates. -If C is not an absolute path, it is relative to the -C directory. If only C<--manifest => is specified -where C is an empty string (C<"">), then C +If C does not start with C, C<./>, or C<../>, it is treated +as relative to the C directory. If only C<--manifest=> +is specified where C is an empty string (C<"">), then C (C<$DESTINATION/manifest.js.gz>) is the implied value of C. =item -p diff --git a/lib/PublicInbox/LeiMirror.pm b/lib/PublicInbox/LeiMirror.pm index e0a212dede3268f1b87a5348fcbdcf292ec1fac6..ec2ed557e7d13b32cbf9263ff20cce709e43166f 100644 --- a/lib/PublicInbox/LeiMirror.pm +++ b/lib/PublicInbox/LeiMirror.pm @@ -1055,7 +1055,7 @@ for my $default (qw(objstore manifest.js.gz)) { my ($k) = (split(/\./, $default))[0]; my $v = $lei->{opt}->{$k} // next; $v = $default if $v eq ''; - $v = "$self->{dst}/$v" if $v !~ m!\A/!; + $v = "$self->{dst}/$v" if $v !~ m!\A\.{0,2}/!; $self->{"-$k"} = $v; } local $LIVE = {};