From 223308ee235035d26ca75fe312fe0da6e6a33222 Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Thu, 11 Aug 2016 18:40:12 +0200 Subject: storage: seekable renamed to filesystem --- repository.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'repository.go') diff --git a/repository.go b/repository.go index 0cd0d35..cab0ada 100644 --- a/repository.go +++ b/repository.go @@ -7,8 +7,8 @@ import ( "gopkg.in/src-d/go-git.v4/clients/common" "gopkg.in/src-d/go-git.v4/core" "gopkg.in/src-d/go-git.v4/formats/packfile" + "gopkg.in/src-d/go-git.v4/storage/filesystem" "gopkg.in/src-d/go-git.v4/storage/memory" - "gopkg.in/src-d/go-git.v4/storage/seekable" "gopkg.in/src-d/go-git.v4/utils/fs" ) @@ -56,7 +56,7 @@ func NewRepositoryFromFS(fs fs.FS, path string) (*Repository, error) { repo := NewPlainRepository() var err error - repo.Storage, err = seekable.New(fs, path) + repo.Storage, err = filesystem.New(fs, path) return repo, err } @@ -239,7 +239,7 @@ func (r *Repository) remoteHead(remote string) (core.Hash, error) { } func (r *Repository) localHead() (core.Hash, error) { - storage, ok := r.Storage.(*seekable.ObjectStorage) + storage, ok := r.Storage.(*filesystem.ObjectStorage) if !ok { return core.ZeroHash, fmt.Errorf("cannot retrieve local head: no local data found") -- cgit