summaryrefslogtreecommitdiffstats
path: root/git-hooks
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@qt.io>2018-01-12 13:01:18 +0100
committerOswald Buddenhagen <oswald.buddenhagen@qt.io>2018-01-12 12:06:31 +0000
commit26110a4db4d4a402739d6ef823a57400337abe76 (patch)
tree7b7421d28539708b1d8c779a00a2658339367aab /git-hooks
parentdbb2058c339bcf15db983c9597277864c157516f (diff)
gerrit-bot: fix hash indexing
amends 21ec987901. Change-Id: I8d04359bbaa77096f7c8d4e446978c65cb2eea19 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'git-hooks')
-rwxr-xr-xgit-hooks/gerrit-bot2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-hooks/gerrit-bot b/git-hooks/gerrit-bot
index a659c73..296a08e 100755
--- a/git-hooks/gerrit-bot
+++ b/git-hooks/gerrit-bot
@@ -249,7 +249,7 @@ sub do_move($$$)
}
my %allowed_status = ('NEW' => 1, 'DEFERRED' => 1, 'DRAFT' => 1, 'ABANDONED' => 1);
my $status = $$chg{'status'};
- return "$status changes cannot be moved" if (!$allowed_status[$status]);
+ return "$status changes cannot be moved" if (!$allowed_status{$status});
my $project = $$chg{'project'};
my $id = $$chg{'id'};
# First, check there's no such review on that branch already