Skip to content

Commit cc92338

Browse files
Grumbelgitster
authored andcommitted
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>
1 parent 5d9798a commit cc92338

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contrib/mw-to-git/git-remote-mediawiki.perl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565

6666
# Just like @tracked_categories, but for MediaWiki namespaces.
6767
my @tracked_namespaces = split(/[ \n]/, run_git("config --get-all remote.${remotename}.namespaces"));
68+
for (@tracked_namespaces) { s/_/ /g; }
6869
chomp(@tracked_namespaces);
6970

7071
# Import media files on pull

0 commit comments

Comments
 (0)