]> sipb.mit.edu Git - ikiwiki.git/blobdiff - ikiwiki
oops, add unlock _before_ svn commit
[ikiwiki.git] / 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();