diff options
author | Thomas Draebing <thomas.draebing@sap.com> | 2020-08-12 15:54:42 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2020-10-01 23:19:09 +0200 |
commit | f46ba3536260304e552a4ab2c2511934bbffd2b9 (patch) | |
tree | b247769d2166c9273766c278396522aaf37c8e1e | |
parent | bb966d818cd81ce2e323b3e27571687cf2df24db (diff) |
Register graceful shutdown for set head command
Change-Id: I69ef1999edc4505cbc38f04ccf997164f0fb70d8
-rw-r--r-- | java/com/google/gerrit/sshd/commands/SetHeadCommand.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/java/com/google/gerrit/sshd/commands/SetHeadCommand.java b/java/com/google/gerrit/sshd/commands/SetHeadCommand.java index fd7ef75e55..b6d283eb02 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 { |