From: Célestin Matte Date: Fri, 14 Jun 2013 13:50:10 +0000 (+0200) Subject: git-remote-mediawiki: move "use warnings;" before any instruction X-Git-Tag: v1.8.4-rc0~147^2~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=668eec6f74b69f3a376edb5a32c4d0d2cc127e72;p=thirdparty%2Fgit.git git-remote-mediawiki: move "use warnings;" before any instruction Signed-off-by: Célestin Matte Signed-off-by: Matthieu Moy Signed-off-by: Junio C Hamano --- 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";