From 22fe81f342538ae51442a72356036768f7f1a2f9 Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Tue, 6 Dec 2016 15:46:09 +0100 Subject: protocol/packp: UploadPackResponse implementation (#161) * plumbing/protocol: paktp avoid duplication of haves, wants and shallow * protocol/pakp: UploadPackResponse implementation * changes * changes * changes * debug * changes --- plumbing/transport/common.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plumbing/transport/common.go') diff --git a/plumbing/transport/common.go b/plumbing/transport/common.go index bfc999f..2379422 100644 --- a/plumbing/transport/common.go +++ b/plumbing/transport/common.go @@ -69,10 +69,10 @@ type FetchPackSession interface { AdvertisedReferences() (*packp.AdvRefs, error) // FetchPack takes a request and returns a reader for the packfile // received from the server. - FetchPack(req *packp.UploadPackRequest) (io.ReadCloser, error) + FetchPack(*packp.UploadPackRequest) (*packp.UploadPackResponse, error) } -// FetchPackSession represents a git-send-pack session. +// SendPackSession represents a git-send-pack session. // A git-send-pack session has two steps: reference discovery // (`AdvertisedReferences` function) and sending pack (`SendPack` function). // In that order. -- cgit