diff options
author | Frederik Gladhorn <frederik.gladhorn@qt.io> | 2019-05-03 13:05:13 +0200 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@qt.io> | 2019-05-03 12:57:58 +0000 |
commit | a2e59d2879f1071fca7345e5888927cdcc64c9a0 (patch) | |
tree | 14b22908f524befb80df1f0e4c7769c1e620292f /git-hooks | |
parent | 50529226884176e3910f84a68fb260a3cb9fb3b2 (diff) |
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 <edward.welbourne@qt.io>
Diffstat (limited to 'git-hooks')
-rwxr-xr-x | git-hooks/gerrit-bot | 2 |
1 files changed, 1 insertions, 1 deletions
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)) { |