aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-08-26 17:38:17 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-08-26 17:38:17 +0000
commitab8125d62aa8fe26ad3f0771d2a8af580ca89564 (patch)
treec4ae3cbdf1f21c2371a5f6209bb64ac19df388bf
parentab1b2add9817c0c9b48b2bfb62a228188997a2b9 (diff)
downloadikiwiki-ab8125d62aa8fe26ad3f0771d2a8af580ca89564.tar
ikiwiki-ab8125d62aa8fe26ad3f0771d2a8af580ca89564.tar.gz
* Fix a bug in unlockwiki intorduced last version that made it crash ikiwiki
if it wasn't locked when called. This is known to break post-commit emails.
-rw-r--r--IkiWiki.pm6
-rw-r--r--debian/changelog7
2 files changed, 9 insertions, 4 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index a89d9c252..18a518f3f 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -774,7 +774,8 @@ sub lockwiki (;$) { #{{{
} #}}}
sub unlockwiki () { #{{{
- return close($wikilock);
+ return close($wikilock) if $wikilock;
+ return;
} #}}}
my $commitlock;
@@ -800,7 +801,8 @@ sub disable_commit_hook () { #{{{
} #}}}
sub enable_commit_hook () { #{{{
- return close($commitlock);
+ return close($commitlock) if $commitlock;
+ return;
} #}}}
sub loadindex () { #{{{
diff --git a/debian/changelog b/debian/changelog
index d7373109e..4cba4c7df 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,11 @@
-ikiwiki (2.7) UNRELEASED; urgency=low
+ikiwiki (2.6.1) UNRELEASED; urgency=low
* Fix bug when blogging by cgi, introduced in last version.
+ * Fix a bug in unlockwiki intorduced last version that made it crash ikiwiki
+ if it wasn't locked when called. This is known to break post-commit
+ emails.
- -- Joey Hess <joeyh@debian.org> Sun, 26 Aug 2007 13:30:31 -0400
+ -- Joey Hess <joeyh@debian.org> Sun, 26 Aug 2007 13:37:14 -0400
ikiwiki (2.6) unstable; urgency=low