aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorIngo Ruhnke <grumbel@gmail.com>2017-11-06 16:19:48 -0500
committerJunio C Hamano <gitster@pobox.com>2017-11-07 09:45:55 +0900
commitcc92338004d6f3e613c9446ccdcddf11433be85f (patch)
tree56e4449a075fa290921ba53082f91592fb5afea8 /contrib
parent5d9798ae622bc51a877a93cae25c53c062854401 (diff)
downloadgit-cc92338004d6f3e613c9446ccdcddf11433be85f.tar.gz
git-cc92338004d6f3e613c9446ccdcddf11433be85f.tar.xz
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')
-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 5ffb57595..a1d783789 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