git-remote-mediawiki: don't split namespaces with spaces
authorMatthieu Moy <Matthieu.Moy@imag.fr>
Mon, 16 Jul 2012 12:00:46 +0000 (14:00 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Jul 2012 18:06:13 +0000 (11:06 -0700)
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/mw-to-git/git-remote-mediawiki

index accd70a94c82b425039b55afdf7b4b8761e7faba..a6ad8cf33ccf2bc539948e86434f0746dfe3c273 100755 (executable)
@@ -1275,7 +1275,7 @@ sub get_mw_namespace_id {
                # Look at configuration file, if the record for that namespace is
                # already cached. Namespaces are stored in form:
                # "Name_of_namespace:Id_namespace", ex.: "File:6".
-               my @temp = split(/[ \n]/, run_git("config --get-all remote."
+               my @temp = split(/[\n]/, run_git("config --get-all remote."
                                                . $remotename .".namespaceCache"));
                chomp(@temp);
                foreach my $ns (@temp) {