From: Ingo Ruhnke Date: Mon, 6 Nov 2017 21:19:48 +0000 (-0500) Subject: remote-mediawiki: allow fetching namespaces with spaces X-Git-Tag: v2.16.0-rc0~126^2~5 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/cc92338004d6f3e613c9446ccdcddf11433be85f?ds=inline;hp=--cc 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é Signed-off-by: Antoine Beaupré Signed-off-by: Junio C Hamano --- cc92338004d6f3e613c9446ccdcddf11433be85f diff --git a/contrib/mw-to-git/git-remote-mediawiki.perl b/contrib/mw-to-git/git-remote-mediawiki.perl index 5ffb575953..a1d7837891 100755 --- a/contrib/mw-to-git/git-remote-mediawiki.perl +++ b/contrib/mw-to-git/git-remote-mediawiki.perl @@ -65,6 +65,7 @@ # 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