public void Receive(Stream inputStream, Stream outputStream) { using (var repository = GetRepository()) { var pack = new ReceivePack(repository); pack.setPostReceiveHook(new PostReceiveFileHook(FullPath)); pack.setBiDirectionalPipe(false); pack.receive(inputStream, outputStream, outputStream); } }
public void Receive(Stream inputStream, Stream outputStream) { using (var repository = GetRepository()) { var pack = new ReceivePack(repository); pack.setBiDirectionalPipe(false); if (PostRecieveHook != null) { pack.setPostReceiveHook(PostRecieveHook); } pack.receive(inputStream, outputStream, outputStream); } }