From 08e08d771ef03df80248c80d81475fe7c5ea6fe7 Mon Sep 17 00:00:00 2001 From: "Santiago M. Mola" Date: Wed, 23 Nov 2016 15:30:34 +0100 Subject: transport: create Client interface (#132) * plumbing: move plumbing/client package to plumbing/transport. * transport: create Client interface. * A Client can instantiate any client transport service. * InstallProtocol installs a Client for a given protocol, instead of just a UploadPackService. * A Client can open a session for fetch-pack or send-pack for a specific Endpoint. * Adapt ssh and http clients to the new client interface. * updated doc --- storage/filesystem/object.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'storage/filesystem/object.go') diff --git a/storage/filesystem/object.go b/storage/filesystem/object.go index 5868748..7b7bc18 100644 --- a/storage/filesystem/object.go +++ b/storage/filesystem/object.go @@ -181,7 +181,7 @@ func (s *ObjectStorage) getFromPackfile(h plumbing.Hash) (plumbing.Object, error } d.SetOffsets(s.index[pack]) - return d.ReadObjectAt(offset) + return d.DecodeObjectAt(offset) } func (s *ObjectStorage) findObjectInPackfile(h plumbing.Hash) (plumbing.Hash, int64) { @@ -297,7 +297,7 @@ func (iter *packfileIter) Next() (plumbing.Object, error) { return nil, io.EOF } - obj, err := iter.d.ReadObject() + obj, err := iter.d.DecodeObject() if err != nil { return nil, err } -- cgit