From 1d56b98d9b02e20f7feea542c75746eab34fad63 Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Fri, 19 Aug 2016 17:42:13 +0200 Subject: Remote.Fetch base on RefSpec, improvement of the responsabilities separation --- clients/common/common.go | 1 + clients/common_test.go | 4 ++++ clients/http/git_upload_pack.go | 4 ++++ 3 files changed, 9 insertions(+) (limited to 'clients') diff --git a/clients/common/common.go b/clients/common/common.go index 9099016..d128f3f 100644 --- a/clients/common/common.go +++ b/clients/common/common.go @@ -28,6 +28,7 @@ type GitUploadPackService interface { ConnectWithAuth(AuthMethod) error Info() (*GitUploadPackInfo, error) Fetch(*GitUploadPackRequest) (io.ReadCloser, error) + Disconnect() error } type AuthMethod interface { diff --git a/clients/common_test.go b/clients/common_test.go index 72d8e99..0381f63 100644 --- a/clients/common_test.go +++ b/clients/common_test.go @@ -76,6 +76,10 @@ func (s *dummyProtocolService) Fetch(r *common.GitUploadPackRequest) (io.ReadClo return nil, nil } +func (s *dummyProtocolService) Disconnect() error { + return nil +} + func typeAsString(v interface{}) string { return fmt.Sprintf("%T", v) } diff --git a/clients/http/git_upload_pack.go b/clients/http/git_upload_pack.go index 68ec238..79aec3f 100644 --- a/clients/http/git_upload_pack.go +++ b/clients/http/git_upload_pack.go @@ -134,3 +134,7 @@ func (s *GitUploadPackService) applyAuthToRequest(req *http.Request) { s.auth.setAuth(req) } + +func (s *GitUploadPackService) Disconnect() (err error) { + return nil +} -- cgit