Merge "Fix: 'Illegal label name'"

This commit is contained in:
Shawn Pearce 2014-03-06 20:28:37 +00:00 committed by Gerrit Code Review
commit 6c9603aa40

View File

@ -115,7 +115,7 @@ public class ReviewCommand extends SshCommand {
@Option(name = "--label", aliases = "-l", usage = "custom label(s) to assign", metaVar = "LABEL=VALUE")
void addLabel(final String token) {
LabelVote v = LabelVote.parse(token);
LabelVote v = LabelVote.parseWithEquals(token);
LabelType.checkName(v.getLabel()); // Disallow SUBM.
customLabels.put(v.getLabel(), v.getValue());
}