]> source.dussan.org Git - gitblit.git/commit
Fix command dispatching
authorDavid Ostrovsky <david@ostrovsky.org>
Wed, 26 Feb 2014 07:19:44 +0000 (08:19 +0100)
committerJames Moger <james.moger@gitblit.com>
Thu, 10 Apr 2014 22:58:07 +0000 (18:58 -0400)
commita3de33e71a22268105714e01d09c1c2e28bfe2c3
treecb9e34a743a273738c34829d3e1d1ffcb32a9689
parent924c9b28edfda6582a5480a7c1a2dd5b3ce89d92
Fix command dispatching

DispatchCommand is supposed to be nested:

  ssh server gitblit version --verbose --format json

means that first the command that is seen by dispatching process is
"gitblit". Dispatch command look in its commands map for this command
and dispatch the rest of the command and options and arguments to this
command, version in this example.

Change-Id: I8ef8e0e369922c793ca7ad36c1a8f76b0206baa7
src/main/java/com/gitblit/transport/ssh/SshDaemon.java
src/main/java/com/gitblit/transport/ssh/commands/DispatchCommand.java