Git hook exception (VJ + #22077)
This commit is contained in:
parent
24170b0b4e
commit
810c589ec0
|
@ -52,11 +52,11 @@ if ($ip->overlaps($labnetwork) == $IP_A_IN_B_OVERLAP)
|
|||
exit 0 if (grep { /\Q$ENV{GL_USER}\E/ } @habitent_loin);
|
||||
|
||||
my $schoolnetwork = Net::IP->new('10.41.0.0/16');
|
||||
#my $vjschoolnetwork = Net::IP->new('10.3.0.0/16');
|
||||
my $vjschoolnetwork = Net::IP->new('10.3.0.0/16');
|
||||
|
||||
if (
|
||||
$ip->overlaps($schoolnetwork) != $IP_A_IN_B_OVERLAP
|
||||
# && $ip->overlaps($vjschoolnetwork) != $IP_A_IN_B_OVERLAP
|
||||
&& $ip->overlaps($vjschoolnetwork) != $IP_A_IN_B_OVERLAP
|
||||
)
|
||||
{
|
||||
say "Votre IP est : ".$ip->ip();
|
||||
|
|
|
@ -8,6 +8,7 @@ use File::Basename;
|
|||
use Net::IP;
|
||||
use POSIX qw(strftime);
|
||||
use Socket;
|
||||
use utf8;
|
||||
|
||||
use ACU::API::Projects;
|
||||
use ACU::API::Submission;
|
||||
|
@ -93,6 +94,10 @@ if ($ref =~ m<^refs/tags/(.+)$>)
|
|||
{
|
||||
$close = DateTime::Format::ISO8601->parse_datetime("2013-11-24T16:42:00");
|
||||
}
|
||||
elsif ($id_project eq "42sh" && "hadjad_r" eq $repo_login)
|
||||
{
|
||||
$close = DateTime::Format::ISO8601->parse_datetime("2013-12-01T17:42:00");
|
||||
}
|
||||
|
||||
say "Date courante : ", $glts->strftime("%d/%m/%Y %H:%M:%S");
|
||||
|
||||
|
|
Reference in New Issue
Block a user