From: Joey Hess <joey@gnu.kitenet.net>
Date: Wed, 8 Jul 2009 17:13:23 +0000 (-0400)
Subject: svn: Fix rcs_rename to properly scope call to dirname.
X-Git-Tag: 3.14159~20
X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/0c6a47e9e4c6a5508868b730bed0ac2d0c358ae4?ds=inline;hp=--cc

svn: Fix rcs_rename to properly scope call to dirname.
---

0c6a47e9e4c6a5508868b730bed0ac2d0c358ae4
diff --git a/IkiWiki/Plugin/svn.pm b/IkiWiki/Plugin/svn.pm
index fe55e7d08..06b987f51 100644
--- a/IkiWiki/Plugin/svn.pm
+++ b/IkiWiki/Plugin/svn.pm
@@ -243,10 +243,10 @@ sub rcs_rename ($$) {
 	
 	if (-d "$config{srcdir}/.svn") {
 		# Add parent directory for $dest
-		my $parent=dirname($dest);
+		my $parent=IkiWiki::dirname($dest);
 		if (! -d "$config{srcdir}/$parent/.svn") {
 			while (! -d "$config{srcdir}/$parent/.svn") {
-				$parent=dirname($dest);
+				$parent=IkiWiki::dirname($dest);
 			}
 			if (system("svn", "add", "--quiet", "$config{srcdir}/$parent") != 0) {
 				warn("svn add $parent failed\n");
diff --git a/debian/changelog b/debian/changelog
index 239b22b42..e83e570d3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+ikiwiki (3.1416) UNRELEASED; urgency=low
+
+  * svn: Fix rcs_rename to properly scope call to dirname.
+
+ -- Joey Hess <joeyh@debian.org>  Wed, 08 Jul 2009 13:10:38 -0400
+
 ikiwiki (3.1415) unstable; urgency=low
 
   * img: Fix extra double quote with alt text. (smcv)
diff --git a/doc/bugs/Renaming_a_file_via_the_web_is_failing_when_using_subversion.mdwn b/doc/bugs/Renaming_a_file_via_the_web_is_failing_when_using_subversion.mdwn
index 4f2257891..1a737df0a 100644
--- a/doc/bugs/Renaming_a_file_via_the_web_is_failing_when_using_subversion.mdwn
+++ b/doc/bugs/Renaming_a_file_via_the_web_is_failing_when_using_subversion.mdwn
@@ -22,3 +22,7 @@ Applying the following patch fixed it:
                             if (system("svn", "add", "--quiet", "$config{srcdir}/$parent") != 0) {
                                     warn("svn add $parent failed\n");
 
+
+> Thank you very much for the patch, which I've applied. I wonder how
+> that snuck in (aside from the obvious, that the svn plugin is not often
+> used and the code was added w/o being tested..). [[done]] --[[Joey]]