Rename AbstractGitCommand->BaseGitCommand
1 files renamed
3 files modified
File was renamed from src/main/java/com/gitblit/transport/ssh/commands/AbstractGitCommand.java |
| | |
| | | * @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; |
| | | |
| | |
| | | @Override |
| | | public void run() throws Exception { |
| | | parseCommandLine(); |
| | | AbstractGitCommand.this.service(); |
| | | BaseGitCommand.this.service(); |
| | | } |
| | | |
| | | @Override |
| | |
| | | } |
| | | |
| | | 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); |
| | |
| | | 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 { |
| | |
| | | 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 { |