| | |
| | | import com.gitblit.git.GitblitReceivePackFactory; |
| | | import com.gitblit.git.GitblitUploadPackFactory; |
| | | import com.gitblit.git.RepositoryResolver; |
| | | import com.gitblit.transport.ssh.AbstractGitCommand; |
| | | import com.gitblit.transport.ssh.CommandMetaData; |
| | | import com.gitblit.transport.ssh.SshKeyAuthenticator; |
| | | import com.gitblit.transport.ssh.PublicKeyAuthenticator; |
| | | import com.gitblit.transport.ssh.SshDaemonClient; |
| | | import com.gitblit.utils.cli.SubcommandHandler; |
| | | import com.google.common.base.Charsets; |
| | |
| | | } |
| | | |
| | | 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); |
| | |
| | | this.gitblitReceivePackFactory = gitblitReceivePackFactory; |
| | | } |
| | | |
| | | private SshKeyAuthenticator authenticator; |
| | | public void setAuthenticator(SshKeyAuthenticator authenticator) { |
| | | private PublicKeyAuthenticator authenticator; |
| | | public void setAuthenticator(PublicKeyAuthenticator authenticator) { |
| | | this.authenticator = authenticator; |
| | | } |
| | | } |