aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/CGI.pm
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-01-28 00:26:55 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-01-28 00:26:55 +0000
commit4ff60ef1c50ab182f7ce011de1ff7ca67e99254b (patch)
tree97359a7e835eec35b921bf306fea09ee9a4acf23 /IkiWiki/CGI.pm
parent8276eb63112ac8283616da6d3287249d76e9e079 (diff)
downloadikiwiki-4ff60ef1c50ab182f7ce011de1ff7ca67e99254b.tar
ikiwiki-4ff60ef1c50ab182f7ce011de1ff7ca67e99254b.tar.gz
* Always call rcs_update after a commit during a web edit, to work around
the problem described in bugs/svn_fails_to_update. Thanks to Ethan for the analysis and patch.
Diffstat (limited to 'IkiWiki/CGI.pm')
-rw-r--r--IkiWiki/CGI.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm
index 96b9dab61..0c6670546 100644
--- a/IkiWiki/CGI.pm
+++ b/IkiWiki/CGI.pm
@@ -507,6 +507,12 @@ sub cgi_editpage ($$) { #{{{
print $form->render(submit => \@buttons);
return;
}
+ else {
+ # Make sure that the repo is up-to-date;
+ # locking prevents the post-commit hook
+ # from updating it.
+ rcs_update();
+ }
}
else {
require IkiWiki::Render;