src/main/java/com/gitblit/transport/ssh/SshCommandContext.java
@@ -15,16 +15,24 @@ */ package com.gitblit.transport.ssh; import com.gitblit.manager.IGitblit; public class SshCommandContext { private final IGitblit gitblit; private final SshDaemonClient client; private final String commandLine; public SshCommandContext(SshDaemonClient client, String commandLine) { public SshCommandContext(IGitblit gitblit, SshDaemonClient client, String commandLine) { this.gitblit = gitblit; this.client = client; this.commandLine = commandLine; } public IGitblit getGitblit() { return gitblit; } public SshDaemonClient getClient() { return client; } src/main/java/com/gitblit/transport/ssh/SshCommandFactory.java
@@ -107,7 +107,7 @@ root.setReceivePackFactory(new GitblitReceivePackFactory<SshDaemonClient>(gitblit)); root.setAuthenticator(keyAuthenticator); root.setContext(new SshCommandContext(client, cmdLine)); root.setContext(new SshCommandContext(gitblit, client, cmdLine)); return root; } src/main/java/com/gitblit/transport/ssh/commands/BaseCommand.java
@@ -87,6 +87,7 @@ @Override public void destroy() { ctx = null; } protected static PrintWriter toPrintWriter(final OutputStream o) {