summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Célestin Matte <celestin.matte@ensimag.fr>2013-06-14 15:50:10 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-06-14 09:02:15 -0700
commit668eec6f74b69f3a376edb5a32c4d0d2cc127e72 (patch)
tree1159f6fd5e8e8ec126686dc23febec2009bbd4fd
parentgit-remote-mediawiki: make a regexp clearer (diff)
downloadtgif-668eec6f74b69f3a376edb5a32c4d0d2cc127e72.tar.xz
git-remote-mediawiki: move "use warnings;" before any instruction
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.perl3
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/mw-to-git/git-remote-mediawiki.perl b/contrib/mw-to-git/git-remote-mediawiki.perl
index 882da1b885..895e081b6e 100755
--- a/contrib/mw-to-git/git-remote-mediawiki.perl
+++ b/contrib/mw-to-git/git-remote-mediawiki.perl
@@ -15,6 +15,7 @@ use strict;
use MediaWiki::API;
use Git;
use DateTime::Format::ISO8601;
+use warnings;
# By default, use UTF-8 to communicate with Git and the user
binmode STDERR, ":utf8";
@@ -23,8 +24,6 @@ binmode STDOUT, ":utf8";
use URI::Escape;
use IPC::Open2;
-use warnings;
-
# Mediawiki filenames can contain forward slashes. This variable decides by which pattern they should be replaced
use constant SLASH_REPLACEMENT => "%2F";