hooks/submission: send git to moulette
This commit is contained in:
parent
b297e386d6
commit
9fa9251590
1 changed files with 15 additions and 0 deletions
|
@ -95,6 +95,21 @@ if ($ref =~ m<^refs/tags/(.+)$>)
|
|||
}
|
||||
else
|
||||
{
|
||||
eval {
|
||||
Process::Client::launch("send_git",
|
||||
{
|
||||
"year" => $promo,
|
||||
"id" => $id_project,
|
||||
"rendu" => $tag,
|
||||
"login" => $repo_login,
|
||||
"path" => $ENV{GL_REPO_BASE_ABS}."/".$ENV{GL_REPO},
|
||||
});
|
||||
};
|
||||
if ($@) {
|
||||
my $err = $@;
|
||||
log DEBUG, "ERROR: ".$err;
|
||||
}
|
||||
|
||||
# Send data to API
|
||||
my $last_commit = `git log $newsha -1 --decorate --tags`;
|
||||
eval {
|
||||
|
|
Reference in a new issue