* Fix bug when editing file from underlaydir, need to rcs_add it even though
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 14 Aug 2007 20:11:45 +0000 (20:11 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 14 Aug 2007 20:11:45 +0000 (20:11 +0000)
  a page creation isn't occuring.

IkiWiki/CGI.pm
debian/changelog

index a073a4eddf876ec3fa2a029841d213d24f88e73f..31b1f748a6b3a1c0a8fa009ed54f476ecc02d5d8 100644 (file)
@@ -558,7 +558,7 @@ sub cgi_editpage ($$) { #{{{
                                $message=$form->field('comments');
                        }
                        
                                $message=$form->field('comments');
                        }
                        
-                       if ($form->field("do") eq "create") {
+                       if (! -e "$config{srcdir}/$file") {
                                rcs_add($file);
                        }
 
                                rcs_add($file);
                        }
 
index d73c755952eba095388da00902642a87d02310b3..314e3efb0b86b160cd447f8a2232c0de9fc58664 100644 (file)
@@ -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.
     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
 
 
 ikiwiki (2.5) unstable; urgency=low