]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/Renaming_a_file_via_the_web_is_failing_when_using_subversion.mdwn
fixed
[ikiwiki.git] / doc / bugs / Renaming_a_file_via_the_web_is_failing_when_using_subversion.mdwn
1 I'm using ikiwiki 3.12 on Mac OS X (installed via mac ports)
2
3 When trying to rename a file via the web interface (using the rename plugin) I get the following error:
4
5 Error: Undefined subroutine &IkiWiki::Plugin::svn::dirname called at /opt/local/lib/perl5/vendor_perl/5.8.9/IkiWiki/Plugin/svn.pm line 246.
6
7 Applying the following patch fixed it:
8
9     --- IkiWiki/Plugin/svn.pm.orig  2009-07-08 12:25:23.000000000 -0400
10     +++ IkiWiki/Plugin/svn.pm       2009-07-08 12:28:36.000000000 -0400
11     @@ -243,10 +243,10 @@
12      
13             if (-d "$config{srcdir}/.svn") {
14                     # Add parent directory for $dest
15     -               my $parent=dirname($dest);
16     +               my $parent=IkiWiki::dirname($dest);
17                     if (! -d "$config{srcdir}/$parent/.svn") {
18                             while (! -d "$config{srcdir}/$parent/.svn") {
19     -                               $parent=dirname($dest);
20     +                               $parent=Ikiwiki::dirname($dest);
21                             }
22                             if (system("svn", "add", "--quiet", "$config{srcdir}/$parent") != 0) {
23                                     warn("svn add $parent failed\n");
24
25
26 > Thank you very much for the patch, which I've applied. I wonder how
27 > that snuck in (aside from the obvious, that the svn plugin is not often
28 > used and the code was added w/o being tested..). [[done]] --[[Joey]]