unlock wiki during svn commit to prevent deadlock with post-commit hook

master
joey 2006-03-17 18:34:33 +00:00
parent 2aa5962115
commit 7fca2e01f8
1 changed files with 5 additions and 0 deletions

View File

@ -420,6 +420,10 @@ sub lockwiki () { #{{{
}
} #}}}
sub lockwiki () { #{{{
close WIKILOCK;
} #}}}
sub loadindex () { #{{{
open (IN, "$config{srcdir}/.ikiwiki/index") || return;
while (<IN>) {
@ -1130,6 +1134,7 @@ sub cgi_editpage ($$) { #{{{
# presumably the commit will trigger an update
# of the wiki
rcs_commit($message);
unlock_wiki();
}
else {
loadindex();