Archived
1
0

Receive ACU-* tags

This commit is contained in:
Mercier Pierre-Olivier 2013-12-05 01:09:55 +01:00
parent d1b027a3ff
commit 4af0617cae

View File

@ -30,9 +30,15 @@ exit(0) if (!$promo || !$id_project || !$repo_login);
for my $ref (@ARGV)
{
if ($ref =~ m<^refs/tags/ACU-(.+)$> || $ref =~ m<^refs/tags/(.+)$>)
{
my $tag = $1;
my $tag;
if ($ref =~ m<^refs/tags/ACU-(.+)$>) {
$tag = $1;
} elsif ($ref =~ m<^refs/tags/(.+)$>) {
$tag = $1;
} else {
next;
}
log DEBUG, "Tag $tag on repository $ENV{GL_REPO} from IP $ENV{'SSH_CLIENT'} updated.";
my $project = get_project_info($tag);
@ -79,7 +85,6 @@ for my $ref (@ARGV)
log DONE, "Tag '$tag' effectué avec succès ! Vérifiez-le sur l'intranet.";
}
}
}
}
exit 0;