remote-mediawiki: allow fetching namespaces with spaces

we still want to use spaces as separators in the config, but we should allow the user to specify namespaces with spaces, so we use underscore for this. Reviewed-by: Antoine Beaupré <anarcat@debian.org> Signed-off-by: Antoine Beaupré <anarcat@debian.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ingo Ruhnke committed Nov 6, 2017 at 16:19 UTC cc92338004d6f3e613c9446ccdcddf11433be85f
1 file changed +1
contrib/mw-to-git/git-remote-mediawiki.perl
+1
@@ -65,6 +65,7 @@ chomp(@tracked_categories);
65
66 # Just like @tracked_categories, but for MediaWiki namespaces.
67 my @tracked_namespaces = split(/[ \n]/, run_git("config --get-all remote.${remotename}.namespaces"));
68 +for (@tracked_namespaces) { s/_/ /g; }
69 chomp(@tracked_namespaces);
70
71 # Import media files on pull