From c60477228c6b4d5e00c7bdb3b895e9f30d00ea97 Mon Sep 17 00:00:00 2001 From: joey Date: Wed, 21 Feb 2007 08:55:28 +0000 Subject: * Since the CGI had to drop the wiki lock to avoid deadlocking the commit hook, it was possible for one CGI to race another one and "win" the commit of both their files. This race has been fixed by adding a new commitlock, which when locked by the CGI, disables the commit hook (except for commit mails). The CGI then takes care of the updates the commit hook would have done. --- IkiWiki/Setup/Standard.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'IkiWiki/Setup') diff --git a/IkiWiki/Setup/Standard.pm b/IkiWiki/Setup/Standard.pm index 0c4272286..f3f7bae5a 100644 --- a/IkiWiki/Setup/Standard.pm +++ b/IkiWiki/Setup/Standard.pm @@ -36,6 +36,9 @@ sub setup_standard { foreach my $wrapper (@wrappers) { %config=(%startconfig, verbose => 0, %setup, %{$wrapper}); checkconfig(); + if (! $config{cgi} && ! $config{post_commit}) { + $config{post_commit}=1; + } gen_wrapper(); } %config=(%startconfig); -- cgit v1.2.3