summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--IkiWiki/CGI.pm2
-rw-r--r--debian/changelog4
2 files changed, 4 insertions, 2 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm
index a073a4edd..31b1f748a 100644
--- a/IkiWiki/CGI.pm
+++ b/IkiWiki/CGI.pm
@@ -558,7 +558,7 @@ sub cgi_editpage ($$) { #{{{
$message=$form->field('comments');
}
- if ($form->field("do") eq "create") {
+ if (! -e "$config{srcdir}/$file") {
rcs_add($file);
}
diff --git a/debian/changelog b/debian/changelog
index d73c75595..314e3efb0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -29,8 +29,10 @@ ikiwiki (2.6) UNRELEASED; urgency=low
re-output onto the page. Hopefully I finally got it right..
* Fix bug in deletion/move during edit code introduced in 1.44. Need to take
the underlaydir into account.
+ * Fix bug when editing file from underlaydir, need to rcs_add it even though
+ a page creation isn't occuring.
- -- Joey Hess <joeyh@debian.org> Tue, 14 Aug 2007 15:41:21 -0400
+ -- Joey Hess <joeyh@debian.org> Tue, 14 Aug 2007 16:08:20 -0400
ikiwiki (2.5) unstable; urgency=low