]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei: drop "git" command forwarding
authorEric Wong <e@80x24.org>
Wed, 27 Jan 2021 09:42:23 +0000 (03:42 -0600)
committerEric Wong <e@80x24.org>
Fri, 29 Jan 2021 05:04:40 +0000 (05:04 +0000)
It was intended as a proof-of-concept and no longer needed.

lib/PublicInbox/LEI.pm

index effc6c52ba28804ab668bb576c09a18e73b0ebe2..abd7fc4823f18854d265192be3db174e4f3e1b4e 100644 (file)
@@ -679,18 +679,6 @@ sub lei__complete {
        # proto parsing.
 }
 
-sub reap_exec { # dwaitpid callback
-       my ($self, $pid) = @_;
-       x_it($self, $?);
-}
-
-sub lei_git { # support passing through random git commands
-       my ($self, @argv) = @_;
-       my %rdr = map { $_ => $self->{$_} } (0..2);
-       my $pid = spawn(['git', @argv], $self->{env}, \%rdr);
-       dwaitpid($pid, \&reap_exec, $self);
-}
-
 sub exec_buf ($$) {
        my ($argv, $env) = @_;
        my $argc = scalar @$argv;