| | |
| | | |
| | | import org.eclipse.jgit.transport.ReceivePack; |
| | | |
| | | import com.gitblit.transport.ssh.AbstractGitCommand; |
| | | 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 { |
| | | ReceivePack rp = receivePackFactory.create(ctx.getSession(), repo); |
| | | ReceivePack rp = receivePackFactory.create(ctx.getClient(), repo); |
| | | rp.receive(in, out, null); |
| | | } catch (Exception e) { |
| | | throw new Failure(1, "fatal: Cannot receive pack: ", e); |