summaryrefslogtreecommitdiff
path: root/contrib/mw-to-git/git-remote-mediawiki.perl
diff options
context:
space:
mode:
authorIngo Ruhnke <grumbel@gmail.com>2017-11-06 21:19:48 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-11-07 00:45:55 (GMT)
commitcc92338004d6f3e613c9446ccdcddf11433be85f (patch)
tree56e4449a075fa290921ba53082f91592fb5afea8 /contrib/mw-to-git/git-remote-mediawiki.perl
parent5d9798ae622bc51a877a93cae25c53c062854401 (diff)
downloadgit-cc92338004d6f3e613c9446ccdcddf11433be85f.zip
git-cc92338004d6f3e613c9446ccdcddf11433be85f.tar.gz
git-cc92338004d6f3e613c9446ccdcddf11433be85f.tar.bz2
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>
Diffstat (limited to 'contrib/mw-to-git/git-remote-mediawiki.perl')
-rwxr-xr-xcontrib/mw-to-git/git-remote-mediawiki.perl1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/mw-to-git/git-remote-mediawiki.perl b/contrib/mw-to-git/git-remote-mediawiki.perl
index 5ffb575..a1d7837 100755
--- a/contrib/mw-to-git/git-remote-mediawiki.perl
+++ b/contrib/mw-to-git/git-remote-mediawiki.perl
@@ -65,6 +65,7 @@ chomp(@tracked_categories);
# Just like @tracked_categories, but for MediaWiki namespaces.
my @tracked_namespaces = split(/[ \n]/, run_git("config --get-all remote.${remotename}.namespaces"));
+for (@tracked_namespaces) { s/_/ /g; }
chomp(@tracked_namespaces);
# Import media files on pull