summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Célestin Matte <celestin.matte@ensimag.fr>2013-06-14 15:50:20 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-06-14 09:02:16 -0700
commit477d4d4235490065a718764fd241d77edd6904cd (patch)
treea18017b9e07ae972e1fce8989c3a546288fe5a9f
parentgit-remote-mediawiki: change style in a regexp (diff)
downloadtgif-477d4d4235490065a718764fd241d77edd6904cd.tar.xz
git-remote-mediawiki: change style in a regexp
Change '[\n]' to '\n': brackets are useless here. Signed-off-by: Célestin Matte <celestin.matte@ensimag.fr> Signed-off-by: Matthieu Moy <matthieu.moy@grenoble-inp.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xcontrib/mw-to-git/git-remote-mediawiki.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/mw-to-git/git-remote-mediawiki.perl b/contrib/mw-to-git/git-remote-mediawiki.perl
index 0169d422be..b6dfe18005 100755
--- a/contrib/mw-to-git/git-remote-mediawiki.perl
+++ b/contrib/mw-to-git/git-remote-mediawiki.perl
@@ -1271,7 +1271,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) {