From 30d47d4f203231c80ffefea1cf10187b841b6110 Mon Sep 17 00:00:00 2001 From: James Moger Date: Fri, 21 Mar 2014 11:48:20 -0400 Subject: [PATCH] Change hidden scope of the git dispatcher and the upload & receive commands --- src/main/java/com/gitblit/transport/ssh/git/GitDispatcher.java | 2 +- src/main/java/com/gitblit/transport/ssh/git/Receive.java | 2 +- src/main/java/com/gitblit/transport/ssh/git/Upload.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gitblit/transport/ssh/git/GitDispatcher.java b/src/main/java/com/gitblit/transport/ssh/git/GitDispatcher.java index b57918eb..69dcd811 100644 --- a/src/main/java/com/gitblit/transport/ssh/git/GitDispatcher.java +++ b/src/main/java/com/gitblit/transport/ssh/git/GitDispatcher.java @@ -26,7 +26,7 @@ import com.gitblit.transport.ssh.commands.CommandMetaData; import com.gitblit.transport.ssh.commands.DispatchCommand; import com.gitblit.transport.ssh.commands.SshCommandContext; -@CommandMetaData(name = "git", description="Dispatcher for git receive and upload commands", hidden = true) +@CommandMetaData(name = "git", description="Git commands") public class GitDispatcher extends DispatchCommand { protected RepositoryResolver repositoryResolver; diff --git a/src/main/java/com/gitblit/transport/ssh/git/Receive.java b/src/main/java/com/gitblit/transport/ssh/git/Receive.java index 36bf2719..94d09985 100644 --- a/src/main/java/com/gitblit/transport/ssh/git/Receive.java +++ b/src/main/java/com/gitblit/transport/ssh/git/Receive.java @@ -19,7 +19,7 @@ import org.eclipse.jgit.transport.ReceivePack; import com.gitblit.transport.ssh.commands.CommandMetaData; -@CommandMetaData(name = "git-receive-pack", description = "Receives pushes from a client") +@CommandMetaData(name = "git-receive-pack", description = "Receives pushes from a client", hidden = true) public class Receive extends BaseGitCommand { @Override protected void runImpl() throws Failure { diff --git a/src/main/java/com/gitblit/transport/ssh/git/Upload.java b/src/main/java/com/gitblit/transport/ssh/git/Upload.java index 1a85368c..c4dfa808 100644 --- a/src/main/java/com/gitblit/transport/ssh/git/Upload.java +++ b/src/main/java/com/gitblit/transport/ssh/git/Upload.java @@ -19,7 +19,7 @@ import org.eclipse.jgit.transport.UploadPack; import com.gitblit.transport.ssh.commands.CommandMetaData; -@CommandMetaData(name = "git-upload-pack", description = "Sends packs to a client for clone and fetch") +@CommandMetaData(name = "git-upload-pack", description = "Sends packs to a client for clone and fetch", hidden = true) public class Upload extends BaseGitCommand { @Override protected void runImpl() throws Failure { -- 2.39.5