]> sipb.mit.edu Git - ikiwiki.git/commitdiff
oops, add unlock _before_ svn commit
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 18 Mar 2006 21:36:36 +0000 (21:36 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 18 Mar 2006 21:36:36 +0000 (21:36 +0000)
ikiwiki

diff --git a/ikiwiki b/ikiwiki
index e218979d1068ecfebfe0b6134a8b921fe788c688..c2310cb37ed0f0e4290d52fd1284b0f84eb3a4f1 100755 (executable)
--- a/ikiwiki
+++ b/ikiwiki
@@ -1131,11 +1131,11 @@ sub cgi_editpage ($$) { #{{{
                        if ($newfile) {
                                rcs_add($file);
                        }
+                       # prevent deadlock with post-commit hook
+                       unlockwiki();
                        # presumably the commit will trigger an update
                        # of the wiki
                        rcs_commit($message);
-                       # prevent deadlock with post-commit hook
-                       unlockwiki();
                }
                else {
                        loadindex();