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






                  
                                                          




                                                                       
                             






                                                                                          
                                                                          






                                                              
package http

import (
	"errors"
	"io"
	"net/http"

	"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(c *http.Client, ep transport.Endpoint) transport.SendPackSession {
	return &sendPackSession{&session{}}
}

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

	return nil, errSendPackNotSupported
}

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