aboutsummaryrefslogblamecommitdiffstats
path: root/plumbing/transport/ssh/send_pack.go
blob: adf67bbec72f13ff585c5897e97fbfda956f9455 (plain) (tree)
1
2
3
4
5
6
7





                
                                                          














                                                                          
                                                                          






                                                              
package ssh

import (
	"errors"
	"io"

	"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp"
	"gopkg.in/src-d/go-git.v4/plumbing/transport"
)

var errSendPackNotSupported = errors.New("send-pack not supported yet")

type sendPackSession struct {
	*session
}

func newSendPackSession(ep transport.Endpoint) (transport.SendPackSession,
	error) {

	return &sendPackSession{&session{}}, nil
}

func (s *sendPackSession) AdvertisedReferences() (*packp.AdvRefs, error) {

	return nil, errSendPackNotSupported
}

func (s *sendPackSession) SendPack() (io.WriteCloser, error) {
	return nil, errSendPackNotSupported
}