James Moger
2014-03-18 991857ff2de203699c9592cccfb9e742d16d02cd
src/main/java/com/gitblit/transport/ssh/commands/RootDispatcher.java
@@ -17,8 +17,6 @@
import java.util.List;
import ro.fortsoft.pf4j.PluginWrapper;
import com.gitblit.manager.IGitblit;
import com.gitblit.models.UserModel;
import com.gitblit.transport.ssh.SshDaemonClient;
@@ -40,13 +38,9 @@
      registerDispatcher(user, GitblitDispatcher.class);
      registerDispatcher(user, GitDispatcher.class);
      List<SshCommand> exts = gitblit.getExtensions(SshCommand.class);
      for (SshCommand sshCommand : exts) {
         PluginDispatchCommand pluginCmd = new PluginDispatchCommand();
         PluginWrapper wrapper = gitblit.whichPlugin(sshCommand.getClass());
         pluginCmd.registerCommand(user, sshCommand.getClass());
         // TODO(davido): add dispatcher registration per plugin name
         //registerDispatcher(wrapper.getDescriptor().getPluginId(), pluginCmd);
      List<DispatchCommand> exts = gitblit.getExtensions(DispatchCommand.class);
      for (DispatchCommand ext : exts) {
         registerDispatcher(user, ext);
      }
   }