зеркало из https://github.com/microsoft/git.git
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>
This commit is contained in:
Родитель
05d4c7b1c4
Коммит
668eec6f74
|
@ -15,6 +15,7 @@ use strict;
|
||||||
use MediaWiki::API;
|
use MediaWiki::API;
|
||||||
use Git;
|
use Git;
|
||||||
use DateTime::Format::ISO8601;
|
use DateTime::Format::ISO8601;
|
||||||
|
use warnings;
|
||||||
|
|
||||||
# By default, use UTF-8 to communicate with Git and the user
|
# By default, use UTF-8 to communicate with Git and the user
|
||||||
binmode STDERR, ":utf8";
|
binmode STDERR, ":utf8";
|
||||||
|
@ -23,8 +24,6 @@ binmode STDOUT, ":utf8";
|
||||||
use URI::Escape;
|
use URI::Escape;
|
||||||
use IPC::Open2;
|
use IPC::Open2;
|
||||||
|
|
||||||
use warnings;
|
|
||||||
|
|
||||||
# Mediawiki filenames can contain forward slashes. This variable decides by which pattern they should be replaced
|
# Mediawiki filenames can contain forward slashes. This variable decides by which pattern they should be replaced
|
||||||
use constant SLASH_REPLACEMENT => "%2F";
|
use constant SLASH_REPLACEMENT => "%2F";
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче