David Ostrovsky
2014-02-26 a3de33e71a22268105714e01d09c1c2e28bfe2c3
refs
author David Ostrovsky <david@ostrovsky.org>
Wednesday, February 26, 2014 02:19 -0500
committer James Moger <james.moger@gitblit.com>
Thursday, April 10, 2014 18:58 -0400
commita3de33e71a22268105714e01d09c1c2e28bfe2c3
tree cb9e34a743a273738c34829d3e1d1ffcb32a9689 tree | zip | gz
parent 924c9b28edfda6582a5480a7c1a2dd5b3ce89d92 view | diff
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
2 files modified
51 ■■■■■ changed files
src/main/java/com/gitblit/transport/ssh/SshDaemon.java 7 ●●●● diff | view | raw | blame | history
src/main/java/com/gitblit/transport/ssh/commands/DispatchCommand.java 44 ●●●●● diff | view | raw | blame | history