]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/lei_store.t
lei_store: alternative unconfigured "git var" workaround
[public-inbox.git] / t / lei_store.t
index bcebde8e0f9a5606d8445d27fb41fc404d9a21bf..c9360f8f08218f7da7c111515df7715e13780b3a 100644 (file)
@@ -12,6 +12,8 @@ require_ok 'PublicInbox::ExtSearch';
 my ($home, $for_destroy) = tmpdir();
 my $opt = { 1 => \(my $out = ''), 2 => \(my $err = '') };
 my $store_dir = "$home/lst";
+local $ENV{GIT_COMMITTER_EMAIL} = 'lei@example.com';
+local $ENV{GIT_COMMITTER_NAME} = 'lei user';
 my $lst = PublicInbox::LeiStore->new($store_dir, { creat => 1 });
 ok($lst, '->new');
 my $smsg = $lst->add_eml(eml_load('t/data/0001.patch'));