summaryrefslogtreecommitdiffstats
path: root/git-hooks/gerrit-bot
diff options
context:
space:
mode:
Diffstat (limited to 'git-hooks/gerrit-bot')
-rwxr-xr-xgit-hooks/gerrit-bot7
1 files changed, 4 insertions, 3 deletions
diff --git a/git-hooks/gerrit-bot b/git-hooks/gerrit-bot
index 2805cf8..1227185 100755
--- a/git-hooks/gerrit-bot
+++ b/git-hooks/gerrit-bot
@@ -247,9 +247,10 @@ sub do_move($$$)
if ($target eq $branch) {
return "The change already targets $branch";
}
- 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});
+ # FIXME: this doesn't work, as for some reason the event stream does not include the status.
+ #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});
my $project = $$chg{'project'};
my $id = $$chg{'id'};
# First, check there's no such review on that branch already