diff options
author | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-02-08 17:21:36 +0000 |
---|---|---|
committer | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-02-08 17:21:36 +0000 |
commit | eaeac7cbdeb5246f433e4d9e205b314c99fc09c2 (patch) | |
tree | 4a3831cdfa811011a293c5faf74ab92c2a083676 /lib/PublicInbox/Import.pm | |
parent | 5ef48061687e5bea3b871fb07d164738ecef907d (diff) | |
download | public-inbox-eaeac7cbdeb5246f433e4d9e205b314c99fc09c2.tar.gz |
For machines which have never seen ssoma, they don't need the index so stop creating it.
Diffstat (limited to 'lib/PublicInbox/Import.pm')
-rw-r--r-- | lib/PublicInbox/Import.pm | 5 |
1 files changed, 2 insertions, 3 deletions
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); } |