]> Sergey Matveev's repositories - public-inbox.git/blobdiff - script/public-inbox-clone
No ext_urls
[public-inbox.git] / script / public-inbox-clone
index efe0cff6f50c0a94382219227e9eee82a85d304b..598979bc1a467a0e308e1278a98e6e93f154bf36 100755 (executable)
@@ -22,9 +22,13 @@ options:
     --quiet | -q      increase verbosity (may be repeated)
     -C DIR            chdir to specified directory
 EOF
+
+# cgit calls it `project-list', grokmirror calls it `projectslist',
+# support both :/
 GetOptions($opt, qw(help|h quiet|q verbose|v+ C=s@ c=s@ include|I=s@ exclude=s@
        inbox-config=s inbox-version=i objstore=s manifest=s
-       prune|p keep-going|k
+       project-list|projectslist=s post-update-hook=s@
+       prune|p keep-going|k exit-code
        dry-run|n jobs|j=i no-torsocks torsocks=s epoch=s)) or die $help;
 if ($opt->{help}) { print $help; exit };
 require PublicInbox::Admin; # loads Config
@@ -58,5 +62,5 @@ my $mrr = bless {
 
 $? = 0;
 $mrr->do_mirror;
-$mrr->can('_wq_done_wait')->([$mrr, $lei], $$);
+$mrr->can('_wq_done_wait')->($$, $mrr, $lei);
 exit(($lei->{child_error} // 0) >> 8);