aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/transport/common.go
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing/transport/common.go')
-rw-r--r--plumbing/transport/common.go13
1 files changed, 3 insertions, 10 deletions
diff --git a/plumbing/transport/common.go b/plumbing/transport/common.go
index a20fa14..41813bf 100644
--- a/plumbing/transport/common.go
+++ b/plumbing/transport/common.go
@@ -30,8 +30,6 @@ var (
ErrAuthorizationRequired = errors.New("authorization required")
ErrEmptyUploadPackRequest = errors.New("empty git-upload-pack given")
ErrInvalidAuthMethod = errors.New("invalid auth method")
-
- ErrAdvertistedReferencesAlreadyCalled = errors.New("cannot call AdvertisedReference twice")
)
const (
@@ -49,6 +47,9 @@ type Client interface {
type Session interface {
SetAuth(auth AuthMethod) error
+ // AdvertisedReferences retrieves the advertised references for a
+ // repository.
+ AdvertisedReferences() (*packp.AdvRefs, error)
io.Closer
}
@@ -63,10 +64,6 @@ type AuthMethod interface {
// In that order.
type FetchPackSession interface {
Session
- // AdvertisedReferences retrieves the advertised references for a
- // repository. It should be called before FetchPack, and it cannot be
- // called after FetchPack.
- AdvertisedReferences() (*packp.AdvRefs, error)
// FetchPack takes a request and returns a reader for the packfile
// received from the server.
FetchPack(*packp.UploadPackRequest) (*packp.UploadPackResponse, error)
@@ -78,10 +75,6 @@ type FetchPackSession interface {
// In that order.
type SendPackSession interface {
Session
- // AdvertisedReferences retrieves the advertised references for a
- // repository. It should be called before FetchPack, and it cannot be
- // called after FetchPack.
- AdvertisedReferences() (*packp.AdvRefs, error)
// UpdateReferences sends an update references request and returns a
// writer to be used for packfile writing.
//TODO: Complete signature.