Add plugin name to PluginCommandModule constructor Since Gerrit 3.10, PluginCommandModule requires the plugin name in its constructor. See I35f1a7855eb1a2f09b2ba8f9de475ff1f51a7924 Change-Id: Iec43431341910a3ddb4d17d25c2ce30f79f68a4d
diff --git a/src/main/java/com/googlesource/gerrit/plugins/lfs/SshModule.java b/src/main/java/com/googlesource/gerrit/plugins/lfs/SshModule.java index 931ffce..cf3a25f 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/lfs/SshModule.java +++ b/src/main/java/com/googlesource/gerrit/plugins/lfs/SshModule.java
@@ -14,13 +14,20 @@ package com.googlesource.gerrit.plugins.lfs; +import com.google.gerrit.extensions.annotations.PluginName; import com.google.gerrit.extensions.registration.DynamicItem; import com.google.gerrit.sshd.PluginCommandModule; import com.google.gerrit.sshd.plugin.LfsPluginAuthCommand; +import com.google.inject.Inject; import com.googlesource.gerrit.plugins.lfs.auth.LfsSshAuth; public class SshModule extends PluginCommandModule { + @Inject + SshModule(@PluginName String pluginName) { + super(pluginName); + } + @Override protected void configureCommands() { DynamicItem.bind(binder(), LfsPluginAuthCommand.LfsSshPluginAuth.class).to(LfsSshAuth.class);