X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=script%2Fpublic-inbox-clone;h=677c56c89c619e577ac447e4f2e4d04cd119899c;hb=556fb7af0e43c1183933d6afe451eb81296b802c;hp=a5651e5fee9f93bdc569df8dd829c8c553283abf;hpb=1e8bb2afbb95942dbed5e0ccc747c50fb90fe2a6;p=public-inbox.git diff --git a/script/public-inbox-clone b/script/public-inbox-clone index a5651e5f..677c56c8 100755 --- a/script/public-inbox-clone +++ b/script/public-inbox-clone @@ -2,8 +2,7 @@ # Copyright (C) all contributors # License: AGPL-3.0+ # Wrapper to git clone remote public-inboxes -use strict; -use v5.10.1; +use v5.12; use Getopt::Long qw(:config gnu_getopt no_ignore_case auto_abbrev); my $opt = {}; my $help = <{help}) { print $help; exit }; require PublicInbox::Admin; # loads Config @@ -38,6 +42,7 @@ defined($dst) or ($dst) = ($url =~ m!/([^/]+)/?\z!); index($dst, "\n") >= 0 and die "`\\n' not allowed in `$dst'"; # n.b. this is still a truckload of code... +require File::Spec; require PublicInbox::LEI; require PublicInbox::LeiExternal; require PublicInbox::LeiMirror; @@ -52,7 +57,7 @@ open $lei->{3}, '.' or die "open . $!"; my $mrr = bless { lei => $lei, src => $url, - dst => $dst, + dst => File::Spec->canonpath($dst), }, 'PublicInbox::LeiMirror'; $? = 0;