diff options
author | Ingo Ruhnke <grumbel@gmail.com> | 2017-11-06 16:19:48 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-11-07 09:45:55 +0900 |
commit | cc92338004d6f3e613c9446ccdcddf11433be85f (patch) | |
tree | 56e4449a075fa290921ba53082f91592fb5afea8 /contrib/mw-to-git/git-remote-mediawiki.perl | |
parent | remote-mediawiki: add namespace support (diff) | |
download | tgif-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/mw-to-git/git-remote-mediawiki.perl')
-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 |