summaryrefslogtreecommitdiffstats
path: root/src/site
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-04-17 23:31:44 -0400
committerJames Moger <james.moger@gitblit.com>2014-04-17 23:33:24 -0400
commit8cbdf3ff0883c54f2bb0b87ee86d7984d83822eb (patch)
tree0fccc39fe535008ab69101d281b1284f8f504731 /src/site
parent80cf76b88cb9b9c1696c48fd418c0cdee995812c (diff)
downloadgitblit-8cbdf3ff0883c54f2bb0b87ee86d7984d83822eb.tar.gz
gitblit-8cbdf3ff0883c54f2bb0b87ee86d7984d83822eb.zip
Remove User parameter from SSH dispatch command setup
Diffstat (limited to 'src/site')
-rw-r--r--src/site/plugins_extensions.mkd10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/site/plugins_extensions.mkd b/src/site/plugins_extensions.mkd
index 86d07291..60f8b47d 100644
--- a/src/site/plugins_extensions.mkd
+++ b/src/site/plugins_extensions.mkd
@@ -75,14 +75,14 @@ import com.gitblit.transport.ssh.commands.UsageExample;
public class MyDispatcher extends DispatchCommand {
@Override
- protected void setup(UserModel user) {
+ protected void setup() {
// commands in this dispatcher
- register(user, CommandA.class);
- register(user, CommandB.class);
+ register(CommandA.class);
+ register(CommandB.class);
// nested dispatchers
- register(user, SubDispatcher1.class);
- register(user, SubDispatcher2.class);
+ register(SubDispatcher1.class);
+ register(SubDispatcher2.class);
}
@CommandMetaData(name = "commanda", aliases = { "ca" }, description = "description of command a")