]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
disable only_committed_changes when uncommitted files are created by plugins
authorJoey Hess <joey@kitenet.net>
Sun, 17 Nov 2013 04:04:05 +0000 (00:04 -0400)
committerJoey Hess <joey@kitenet.net>
Sun, 17 Nov 2013 04:04:05 +0000 (00:04 -0400)
IkiWiki/Plugin/autoindex.pm
IkiWiki/Plugin/comments.pm
IkiWiki/Plugin/tag.pm

index 78571b27677d4377892f8f9a451f1c87dbde365a..dede9eb05cf3fafc9e4cc8e4d9ad013a088417a5 100644 (file)
@@ -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 ($) {
index 1ef79a27a958a77dde14f75dd34b1b5c75dd5763..b1d8578ae04b3512866e21b42a53cb31b1a9ca08 100644 (file)
@@ -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} = ''
index 605f415994e73bee121faab9fb7e5e64f1a02182..c07d0131e88f469fca0a7f7cf8b3273663bbe75e 100644 (file)
@@ -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 ($) {