Install "git-lfs-authenticate" SSH command when lfs.plugin is configured
SSH command registration was extended so that command gets registered only in case when plugin is configured in gerrit.config. Change-Id: Iffaf00775bdf1242e1fbe1dea15e5ce0bf912079 Signed-off-by: Jacek Centkowski <geminica.programs@gmail.com>
This commit is contained in:

committed by
Jacek Centkowski

parent
f104ccd30c
commit
31235233d0
@@ -72,6 +72,7 @@ import com.google.gerrit.sshd.SshKeyCacheImpl;
|
||||
import com.google.gerrit.sshd.SshModule;
|
||||
import com.google.gerrit.sshd.commands.DefaultCommandModule;
|
||||
import com.google.gerrit.sshd.commands.IndexCommandsModule;
|
||||
import com.google.gerrit.sshd.plugin.LfsPluginAuthCommand;
|
||||
import com.google.inject.AbstractModule;
|
||||
import com.google.inject.CreationException;
|
||||
import com.google.inject.Guice;
|
||||
@@ -356,7 +357,8 @@ public class WebAppInitializer extends GuiceServletContextListener
|
||||
modules.add(sysInjector.getInstance(SshModule.class));
|
||||
modules.add(new SshHostKeyModule());
|
||||
modules.add(new DefaultCommandModule(false,
|
||||
sysInjector.getInstance(DownloadConfig.class)));
|
||||
sysInjector.getInstance(DownloadConfig.class),
|
||||
sysInjector.getInstance(LfsPluginAuthCommand.Module.class)));
|
||||
if (indexType == IndexType.LUCENE) {
|
||||
modules.add(new IndexCommandsModule());
|
||||
}
|
||||
|
Reference in New Issue
Block a user