Archived
1
0
Fork 0

hooks/subject: * not allowed in tag

This commit is contained in:
Mercier Pierre-Olivier 2013-10-18 09:08:59 +02:00
parent 72800c21cc
commit 18608fe325

View file

@ -490,7 +490,7 @@ sub tag_ref
$rendu = $_[2]; $rendu = $_[2];
} }
else { else {
$rendu = "*"; $rendu = "";
} }
my $year; my $year;
@ -511,11 +511,7 @@ sub tag_ref
my $long_tag; my $long_tag;
{ {
my $proj_id = $_[1] // ""; my $proj_id = $_[1] // "";
if ($rendu eq "*") { $long_tag = "ref,$proj_id,$rendu,$year";
$long_tag = "ref,$proj_id,,$year";
} else {
$long_tag = "ref,$proj_id,$rendu,$year";
}
} }
if ($creation) if ($creation)
@ -600,13 +596,7 @@ sub tag_tests
$project_id = lc $project_id; $project_id = lc $project_id;
$project_id =~ s/[^a-z0-9-_]/_/g; $project_id =~ s/[^a-z0-9-_]/_/g;
my $rendu; my $rendu = $_[2];
if ($_[2]) {
$rendu = $_[2];
}
else {
$rendu = "*";
}
my $year; my $year;
if ($_[3]) if ($_[3])
@ -626,11 +616,7 @@ sub tag_tests
my $long_tag; my $long_tag;
{ {
my $proj_id = $_[1] // ""; my $proj_id = $_[1] // "";
if ($rendu eq "*") { $long_tag = "tests,$proj_id,$rendu,$year";
$long_tag = "tests,$proj_id,,$year";
} else {
$long_tag = "tests,$proj_id,$rendu,$year";
}
} }
if ($creation) if ($creation)