]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Admin.pm
new public-inbox-{clone,fetch} commands
[public-inbox.git] / lib / PublicInbox / Admin.pm
index 2534958b121e691ecee1e963fde736d03383c30f..9ff59bca3eea304198090585e93eb6f2946853a0 100644 (file)
@@ -372,4 +372,12 @@ sub index_prepare ($$) {
        $env;
 }
 
+sub do_chdir ($) {
+       my $chdir = $_[0] // return;
+       for my $d (@$chdir) {
+               next if $d eq ''; # same as git(1)
+               chdir $d or die "cd $d: $!";
+       }
+}
+
 1;