]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/po_plugin_cannot_add_po_files_into_git.mdwn
style.css: Use relative, not absolute font sizes. Thanks, Giuseppe Bilotta.
[ikiwiki.git] / doc / bugs / po_plugin_cannot_add_po_files_into_git.mdwn
1 po files are not added to git (error: /path/to/po/file not in repository tree) in my setup.
2
3 I have set absolute path for srcdir = '/path/to/repo/doc/'. The root of my git repository is '/path/to/repo/'. When I enable the po plugin, it creates all po files and produces an error when it try to add the file saying that the /path/to/repo/doc/index.fr.po is not in the repository tree.
4
5 I have no problem when I use an relative path like srcdir = '.'.
6
7 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).
8
9 > You should never use a relative srcdir path with ikiwiki.
10
11 > I wonder what version of git you have there, since it works ok with the
12 > version I have here. But, the po plugin is definitly doing the wrong
13 > thing; it's telling git to add the po file with the full scrdir path
14 > rather than relative to its root. Fixed that. [[done]] --[[Joey]] 
15
16 >> Yeah, I figured for the relative path
17 >> Git version 1.6.3.3 (on both my dev and server machines)
18 >>
19 >> Here is an example of what I get when I update the po file on my laptop and I push to the master repository:
20
21      From /srv/git/sb
22        5eb4619..ecac4d7  master     -> origin/master
23     scanning doc.fr.po
24     building doc.fr.po
25     building doc.mdwn, which depends on doc.fr
26     building recentchanges.mdwn, which depends on recentchanges/change_ecac4d7311b15a3a3ed03102b9250487315740bc
27     fatal: '/srv/www/sb.l.n/new/doc/doc.fr.po' is outside repository
28     'git add /srv/www/sb.l.n/new/doc/doc.fr.po' failed:  at /usr/share/perl5/IkiWiki/Plugin/git.pm line 161.
29     done
30     To ssh://git.lohrun.net/var/cache/git/songbook.git
31        5eb4619..ecac4d7  master -> master
32   
33 >> The root repository used to run ikiwiki is `/srv/www/sb.l.n/new/` 
34 >> -- [[AlexandreDupas]]