From 5891d059a25eddb0238b6389d873d15c67bd7981 Mon Sep 17 00:00:00 2001 From: James Moger Date: Fri, 14 Mar 2014 15:18:24 -0400 Subject: [PATCH] Rename AbstractGitCommand->BaseGitCommand --- .../commands/{AbstractGitCommand.java => BaseGitCommand.java} | 4 ++-- .../com/gitblit/transport/ssh/commands/DispatchCommand.java | 4 ++-- src/main/java/com/gitblit/transport/ssh/commands/Receive.java | 2 +- src/main/java/com/gitblit/transport/ssh/commands/Upload.java | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) rename src/main/java/com/gitblit/transport/ssh/commands/{AbstractGitCommand.java => BaseGitCommand.java} (96%) diff --git a/src/main/java/com/gitblit/transport/ssh/commands/AbstractGitCommand.java b/src/main/java/com/gitblit/transport/ssh/commands/BaseGitCommand.java similarity index 96% rename from src/main/java/com/gitblit/transport/ssh/commands/AbstractGitCommand.java rename to src/main/java/com/gitblit/transport/ssh/commands/BaseGitCommand.java index f429b446..a3411616 100644 --- a/src/main/java/com/gitblit/transport/ssh/commands/AbstractGitCommand.java +++ b/src/main/java/com/gitblit/transport/ssh/commands/BaseGitCommand.java @@ -32,7 +32,7 @@ import com.gitblit.transport.ssh.SshDaemonClient; * @author Eric Myhre * */ -public abstract class AbstractGitCommand extends BaseCommand { +public abstract class BaseGitCommand extends BaseCommand { @Argument(index = 0, metaVar = "REPOSITORY", required = true, usage = "repository name") protected String repository; @@ -48,7 +48,7 @@ public abstract class AbstractGitCommand extends BaseCommand { @Override public void run() throws Exception { parseCommandLine(); - AbstractGitCommand.this.service(); + BaseGitCommand.this.service(); } @Override diff --git a/src/main/java/com/gitblit/transport/ssh/commands/DispatchCommand.java b/src/main/java/com/gitblit/transport/ssh/commands/DispatchCommand.java index 4ace09b3..9ffb1236 100644 --- a/src/main/java/com/gitblit/transport/ssh/commands/DispatchCommand.java +++ b/src/main/java/com/gitblit/transport/ssh/commands/DispatchCommand.java @@ -198,8 +198,8 @@ public class DispatchCommand extends BaseCommand { } private void provideGitState(Command cmd) { - if (cmd instanceof AbstractGitCommand) { - AbstractGitCommand a = (AbstractGitCommand) cmd; + if (cmd instanceof BaseGitCommand) { + BaseGitCommand a = (BaseGitCommand) cmd; a.setRepositoryResolver(repositoryResolver); a.setUploadPackFactory(gitblitUploadPackFactory); a.setReceivePackFactory(gitblitReceivePackFactory); diff --git a/src/main/java/com/gitblit/transport/ssh/commands/Receive.java b/src/main/java/com/gitblit/transport/ssh/commands/Receive.java index 5c92a699..559cfa5d 100644 --- a/src/main/java/com/gitblit/transport/ssh/commands/Receive.java +++ b/src/main/java/com/gitblit/transport/ssh/commands/Receive.java @@ -20,7 +20,7 @@ import org.eclipse.jgit.transport.ReceivePack; import com.gitblit.transport.ssh.CommandMetaData; @CommandMetaData(name = "git-receive-pack", description = "Receive pack") -public class Receive extends AbstractGitCommand { +public class Receive extends BaseGitCommand { @Override protected void runImpl() throws Failure { try { diff --git a/src/main/java/com/gitblit/transport/ssh/commands/Upload.java b/src/main/java/com/gitblit/transport/ssh/commands/Upload.java index 1607aa6a..ac98bb20 100644 --- a/src/main/java/com/gitblit/transport/ssh/commands/Upload.java +++ b/src/main/java/com/gitblit/transport/ssh/commands/Upload.java @@ -20,7 +20,7 @@ import org.eclipse.jgit.transport.UploadPack; import com.gitblit.transport.ssh.CommandMetaData; @CommandMetaData(name = "git-upload-pack", description = "Upload pack") -public class Upload extends AbstractGitCommand { +public class Upload extends BaseGitCommand { @Override protected void runImpl() throws Failure { try { -- 2.39.5