Newer versions of git enable the commit graph by default.
Since we blow away our temporary directories every test,
generating graphis is a waste and clutters stderr with
"Computing commit graph generation numbers" messages.
scripts/slrnspool2maildir
scripts/ssoma-replay
scripts/xhdr-num2mid
+t/.gitconfig
t/address.t
t/admin.t
t/altid.t
--- /dev/null
+; this becomes ~/.gitconfig for tests where we use
+; "$ENV{HOME} = '/path/to/worktree/t'" in tests
+[gc]
+ writeCommitGraph = false
plan skip_all => "missing $mod for t/purge.t" if $@;
};
use Cwd qw(abs_path); # we need this since we chdir below
+local $ENV{HOME} = abs_path('t');
my $purge = abs_path('blib/script/public-inbox-purge');
my ($tmpdir, $for_destroy) = tmpdir();
use_ok 'PublicInbox::V2Writable';
use PublicInbox::MIME;
use PublicInbox::InboxWritable;
require './t/common.perl';
+use Cwd qw(abs_path);
require_git(2.6); # replace is v2 only, for now...
foreach my $mod (qw(DBD::SQLite)) {
eval "require $mod";
plan skip_all => "$mod missing for $0" if $@;
}
+local $ENV{HOME} = abs_path('t');
+
sub test_replace ($$$) {
my ($v, $level, $opt) = @_;
diag "v$v $level replace";
use warnings;
use Test::More;
require './t/common.perl';
+use Cwd qw(abs_path);
require_git(2.6);
+local $ENV{HOME} = abs_path('t');
# Integration tests for HTTP cloning + mirroring
foreach my $mod (qw(Plack::Util Plack::Builder
use PublicInbox::MIME;
use PublicInbox::ContentId qw(content_digest);
require './t/common.perl';
+use Cwd qw(abs_path);
require_git(2.6);
foreach my $mod (qw(DBD::SQLite Search::Xapian)) {
eval "require $mod";
plan skip_all => "$mod missing for nntpd.t" if $@;
}
+local $ENV{HOME} = abs_path('t');
use_ok 'PublicInbox::V2Writable';
umask 007;
my ($inboxdir, $for_destroy) = tmpdir();