commit dd8022113eb430e64aea49e8ad36cfaac55ae58c Author: Thomas Draebing Date: Wed Aug 12 15:19:31 2020 +0200 Register graceful shutdown for ban commit command Change-Id: If3476d2dbf292a5fcb9786dacdaf7b5dfe43524d diff --git a/java/com/google/gerrit/sshd/commands/BanCommitCommand.java b/java/com/google/gerrit/sshd/commands/BanCommitCommand.java index 415ac4c..42e5624 100644 --- a/java/com/google/gerrit/sshd/commands/BanCommitCommand.java +++ b/java/com/google/gerrit/sshd/commands/BanCommitCommand.java @@ -63,6 +63,7 @@ public class BanCommitCommand extends SshCommand { @Override protected void run() throws Failure { + enableGracefulStop(); try { BanCommitInput input = BanCommitInput.fromCommits(Lists.transform(commitsToBan, ObjectId::getName));