From: joey Date: Tue, 14 Aug 2007 20:11:45 +0000 (+0000) Subject: * Fix bug when editing file from underlaydir, need to rcs_add it even though X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/d392f5776afcddc015aabe890ff777a24e5e2f0f?ds=sidebyside * Fix bug when editing file from underlaydir, need to rcs_add it even though a page creation isn't occuring. --- 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 Tue, 14 Aug 2007 15:41:21 -0400 + -- Joey Hess Tue, 14 Aug 2007 16:08:20 -0400 ikiwiki (2.5) unstable; urgency=low