commit f46ba3536260304e552a4ab2c2511934bbffd2b9 Author: Thomas Draebing Date: Wed Aug 12 15:54:42 2020 +0200 Register graceful shutdown for set head command Change-Id: I69ef1999edc4505cbc38f04ccf997164f0fb70d8 diff --git a/java/com/google/gerrit/sshd/commands/SetHeadCommand.java b/java/com/google/gerrit/sshd/commands/SetHeadCommand.java index fd7ef75..b6d283e 100644 --- a/java/com/google/gerrit/sshd/commands/SetHeadCommand.java +++ b/java/com/google/gerrit/sshd/commands/SetHeadCommand.java @@ -43,6 +43,7 @@ public class SetHeadCommand extends SshCommand { @Override protected void run() throws Exception { + enableGracefulStop(); HeadInput input = new HeadInput(); input.ref = newHead; try {