git-remote-mediawiki: don't split namespaces with spaces
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Matthieu Moy committed
Jul 16, 2012 at 14:00 UTC
ac4bbb41b25949adff3afa96b2821f648abad8b3
1 file changed
+1
-1
contrib/mw-to-git/git-remote-mediawiki
+1
-1
@@ -1275,7 +1275,7 @@ sub get_mw_namespace_id {
1275
# Look at configuration file, if the record for that namespace is
1276
# already cached. Namespaces are stored in form:
1277
# "Name_of_namespace:Id_namespace", ex.: "File:6".
1278
- my @temp = split(/[ \n]/, run_git("config --get-all remote."
1278
+ my @temp = split(/[\n]/, run_git("config --get-all remote."
1279
. $remotename .".namespaceCache"));
1280
chomp(@temp);
1281
foreach my $ns (@temp) {