diff options
author | Santiago M. Mola <santi@mola.io> | 2016-12-09 14:44:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-09 14:44:03 +0100 |
commit | 0e1a52757a3938e97cf7d31e0dff3c9949001763 (patch) | |
tree | 8b998fdc3eaaf6b2d6c69a125759a778664207a5 /plumbing/transport/http | |
parent | 4f16cc925238aae81586e917d26b8ff6b6a340bd (diff) | |
download | go-git-0e1a52757a3938e97cf7d31e0dff3c9949001763.tar.gz |
transport: add git-send-pack support to local/ssh. (#163)
* protocol/packp: add Packfile field to ReferenceUpdateRequest.
* protocol/packp: add NewReferenceUpdateRequestFromCapabilities.
* NewReferenceUpdateRequestFromCapabilities can be used to create
a ReferenceUpdateRequest with initial capabilities compatible with
the server.
* protocol/packp: fix new line handling on report status.
* transport/file: test error on unexisting command.
Diffstat (limited to 'plumbing/transport/http')
-rw-r--r-- | plumbing/transport/http/send_pack.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plumbing/transport/http/send_pack.go b/plumbing/transport/http/send_pack.go index 5e3b2bb..43464ae 100644 --- a/plumbing/transport/http/send_pack.go +++ b/plumbing/transport/http/send_pack.go @@ -2,7 +2,6 @@ package http import ( "errors" - "io" "net/http" "gopkg.in/src-d/go-git.v4/plumbing/protocol/packp" @@ -24,6 +23,8 @@ func (s *sendPackSession) AdvertisedReferences() (*packp.AdvRefs, error) { return nil, errSendPackNotSupported } -func (s *sendPackSession) SendPack() (io.WriteCloser, error) { +func (s *sendPackSession) SendPack(*packp.ReferenceUpdateRequest) ( + *packp.ReportStatus, error) { + return nil, errSendPackNotSupported } |