summaryrefslogtreecommitdiff
path: root/contrib/mw-to-git
diff options
context:
space:
mode:
authorCélestin Matte <celestin.matte@ensimag.fr>2013-06-14 13:50:10 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-06-14 16:02:15 (GMT)
commit668eec6f74b69f3a376edb5a32c4d0d2cc127e72 (patch)
tree1159f6fd5e8e8ec126686dc23febec2009bbd4fd /contrib/mw-to-git
parent05d4c7b1c46b7a6cbc8f4c0403a6e208aea1c63c (diff)
downloadgit-668eec6f74b69f3a376edb5a32c4d0d2cc127e72.zip
git-668eec6f74b69f3a376edb5a32c4d0d2cc127e72.tar.gz
git-668eec6f74b69f3a376edb5a32c4d0d2cc127e72.tar.bz2
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>
Diffstat (limited to 'contrib/mw-to-git')
-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 882da1b..895e081 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";