diff options
author | Ingo Ruhnke <grumbel@gmail.com> | 2017-11-07 00:19:48 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-11-07 03:45:55 +0300 |
commit | cc92338004d6f3e613c9446ccdcddf11433be85f (patch) | |
tree | 56e4449a075fa290921ba53082f91592fb5afea8 /contrib | |
parent | 5d9798ae622bc51a877a93cae25c53c062854401 (diff) |
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-x | contrib/mw-to-git/git-remote-mediawiki.perl | 1 |
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 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 @@ 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 |