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) for my $ref (@ARGV)
{ {
if ($ref =~ m<^refs/tags/ACU-(.+)$> || $ref =~ m<^refs/tags/(.+)$>) my $tag;
{ if ($ref =~ m<^refs/tags/ACU-(.+)$>) {
my $tag = $1; $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."; log DEBUG, "Tag $tag on repository $ENV{GL_REPO} from IP $ENV{'SSH_CLIENT'} updated.";
my $project = get_project_info($tag); my $project = get_project_info($tag);
@ -80,7 +86,6 @@ for my $ref (@ARGV)
} }
} }
} }
}
exit 0; exit 0;