From 3ba2ef1a54c75a83b6f90a6c01730812ef834086 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Mon, 9 Apr 2012 15:12:35 +0100 Subject: [PATCH] autoindex: remove unnecessary special case for transient underlay It's not clear that the transient underlay should be excluded from indexing; see [[bugs/transient autocreated tagbase is not transient autoindexed]]. In any case, the code that checks what directories might need indexes specifically checks for the srcdir anyway, so the only effect this extra check can have is negative (it could fail to notice files in the transient underlay and attempt to recreate them unnecessarily). --- IkiWiki/Plugin/autoindex.pm | 1 - 1 file changed, 1 deletion(-) diff --git a/IkiWiki/Plugin/autoindex.pm b/IkiWiki/Plugin/autoindex.pm index 78571b276..04d501461 100644 --- a/IkiWiki/Plugin/autoindex.pm +++ b/IkiWiki/Plugin/autoindex.pm @@ -71,7 +71,6 @@ sub refresh () { my (%pages, %dirs); foreach my $dir ($config{srcdir}, @{$config{underlaydirs}}, $config{underlaydir}) { - next if $dir eq $IkiWiki::Plugin::transient::transientdir; chdir($dir) || next; find({ -- 2.39.5