From a2e59d2879f1071fca7345e5888927cdcc64c9a0 Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Fri, 3 May 2019 13:05:13 +0200 Subject: Fix sanity bot startup - Bare NONE is not allowed After the last change, the bot refuses to start: Execution of /srv/gerrit/sanitybot/gerrit-bot.pl aborted due to compilation errors. Bareword "NONE" not allowed while "strict subs" in use at /srv/gerrit/sanitybot/gerrit-bot.pl line 224. Change-Id: I62958d97ba0311986549c7cc6e78a4e381cbd28a Reviewed-by: Edward Welbourne --- git-hooks/gerrit-bot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-hooks/gerrit-bot b/git-hooks/gerrit-bot index cacfa0e..29ad4ed 100755 --- a/git-hooks/gerrit-bot +++ b/git-hooks/gerrit-bot @@ -223,7 +223,7 @@ sub process_commit($$$$$) } if ($$verdict{labels}{'Sanity-Review'} == 1 && int($$verdict{comments}) == 0) { # Don't spam everyone about a boring +1 sanity review with no comments. - $$verdict{notify} = NONE; + $$verdict{notify} = "NONE"; } if (@invite) { if (system(@gerrit_actor, "set-reviewers", (map { ('-a', $_) } @invite), '--', $rev)) { -- cgit v1.2.3