my $git = PublicInbox::Git->new($git_dir);
# We do not touch GIT_COMMITTER_* env here so we can track
# who trained the message.
- my $name = $ENV{GIT_COMMITTER_NAME} || $dst->{inbox};
+ my $name = $ENV{GIT_COMMITTER_NAME} || $dst->{name};
my $email = $ENV{GIT_COMMITTER_EMAIL} || $recipient;
my $im = PublicInbox::Import->new($git, $name, $email);
# now train it
local $ENV{GIT_AUTHOR_EMAIL} = 'trainer@example.com';
local $ENV{GIT_COMMITTER_EMAIL} = 'trainer@example.com';
+ local $ENV{GIT_COMMITTER_NAME} = undef;
IPC::Run::run([$learn, "spam"], \$msg);
is($?, 0, "no failure from learning spam");
IPC::Run::run([$learn, "spam"], \$msg);