From eaeac7cbdeb5246f433e4d9e205b314c99fc09c2 Mon Sep 17 00:00:00 2001 From: "Eric Wong (Contractor, The Linux Foundation)" Date: Thu, 8 Feb 2018 17:21:36 +0000 Subject: import: stop writing legacy ssoma.index by default For machines which have never seen ssoma, they don't need the index so stop creating it. --- lib/PublicInbox/Import.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/PublicInbox/Import.pm') diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm index 8eec17eb..299329b4 100644 --- a/lib/PublicInbox/Import.pm +++ b/lib/PublicInbox/Import.pm @@ -229,10 +229,9 @@ sub done { # for compatibility with existing ssoma installations # we can probably remove this entirely by 2020 my $git_dir = $self->{git}->{git_dir}; - # XXX: change the following scope to: if (-e $index) # in 2018 or so.. my @cmd = ('git', "--git-dir=$git_dir"); - if ($nchg && !$ENV{FAST}) { - my $index = "$git_dir/ssoma.index"; + my $index = "$git_dir/ssoma.index"; + if ($nchg && -e $index && !$ENV{FAST}) { my $env = { GIT_INDEX_FILE => $index }; run_die([@cmd, qw(read-tree -m -v -i), $self->{ref}], $env); } -- cgit v1.2.3-24-ge0c7