]> sipb.mit.edu Git - ikiwiki.git/commitdiff
po: Fixed to run rcs_add ralative to srcdir.
authorJoey Hess <joey@gnu.kitenet.net>
Wed, 19 Aug 2009 18:05:59 +0000 (14:05 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Wed, 19 Aug 2009 18:05:59 +0000 (14:05 -0400)
IkiWiki/Plugin/po.pm
debian/changelog
doc/bugs/po_plugin_cannot_add_po_files_into_git.mdwn

index aa3d72b90ebaeaeb88a54e9f953f57cfb8e629c0..41490699914ef632647ab593da91a1aa90c648d0 100644 (file)
@@ -414,7 +414,7 @@ sub change (@) {
                }
                if (@pofiles) {
                        refreshpofiles($masterfile, @pofiles);
-                       map { IkiWiki::rcs_add($_) } @pofiles if $config{rcs};
+                       map { s/^\Q$config{srcdir}\E\/*//; IkiWiki::rcs_add($_) } @pofiles if $config{rcs};
                        $updated_po_files=1;
                }
        }
index ddf69f284b29ffe304f6f0bfdcfd65b6f416bba3..4bb450a552ccb21ccf7888e9c7f068e6bee5eef4 100644 (file)
@@ -18,6 +18,7 @@ ikiwiki (3.141593) UNRELEASED; urgency=low
     pages from the basewiki.
   * Updated French program translation from Philippe Batailler.
     Closes: #542036
+  * po: Fixed to run rcs_add ralative to srcdir.
 
  -- Joey Hess <joeyh@debian.org>  Wed, 12 Aug 2009 12:25:30 -0400
 
index f874570805681caa0cfd856c7e5b594ab8f9444a..6fadff07ea096799ca2bcd09064cd17650f13acf 100644 (file)
@@ -5,3 +5,10 @@ I have set absolute path for srcdir = '/path/to/repo/doc/'. The root of my git r
 I have no problem when I use an relative path like srcdir = '.'.
 
 I have an other issue with the po plugin when I set the srcdir to './doc/' (provided that my config file is in /path/to/repo). In this case the po plugin try to add 'doc/doc/index.fr.po' which does not exists (seems like the srcdir path is prepended twice).
+
+> You should never use a relative srcdir path with ikiwiki.
+> 
+> I wonder what version of git you have there, since it works ok with the
+> version I have here. But, the po plugin is definitly doing the wrong
+> thing; it's telling git to add the po file with the full scrdir path
+> rather than relative to its root. Fixed that. [[done]] --[[Joey]]