From: Joey Hess Date: Sun, 17 Nov 2013 04:04:05 +0000 (-0400) Subject: disable only_committed_changes when uncommitted files are created by plugins X-Git-Tag: debian/3.20140102~61 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/7dd110ba51c738e249ea974b71f85477c543e5bc disable only_committed_changes when uncommitted files are created by plugins --- diff --git a/IkiWiki/Plugin/autoindex.pm b/IkiWiki/Plugin/autoindex.pm index 78571b276..dede9eb05 100644 --- a/IkiWiki/Plugin/autoindex.pm +++ b/IkiWiki/Plugin/autoindex.pm @@ -33,6 +33,9 @@ sub checkconfig () { if (! defined $config{autoindex_commit}) { $config{autoindex_commit} = 1; } + if (! $config{autoindex_commit}) { + $config{only_committed_changes}=0; + } } sub genindex ($) { diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm index 1ef79a27a..b1d8578ae 100644 --- a/IkiWiki/Plugin/comments.pm +++ b/IkiWiki/Plugin/comments.pm @@ -104,6 +104,9 @@ sub getsetup () { sub checkconfig () { $config{comments_commit} = 1 unless defined $config{comments_commit}; + if (! $config{comments_commit}) { + $config{only_committed_changes}=0; + } $config{comments_pagespec} = '' unless defined $config{comments_pagespec}; $config{comments_closed_pagespec} = '' diff --git a/IkiWiki/Plugin/tag.pm b/IkiWiki/Plugin/tag.pm index 605f41599..c07d0131e 100644 --- a/IkiWiki/Plugin/tag.pm +++ b/IkiWiki/Plugin/tag.pm @@ -58,6 +58,9 @@ sub checkconfig () { if (! defined $config{tag_autocreate_commit}) { $config{tag_autocreate_commit} = 1; } + if (! $config{tag_autocreate_commit}) { + $config{only_committed_changes}=0; + } } sub taglink ($) {