diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-11 18:40:12 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-11 18:40:12 +0200 |
commit | 223308ee235035d26ca75fe312fe0da6e6a33222 (patch) | |
tree | 47b226db432237dbb388ee70217d6a74de14b988 /repository.go | |
parent | 1f64d789038594098ea2c9cf796391f101d0bea5 (diff) | |
download | go-git-223308ee235035d26ca75fe312fe0da6e6a33222.tar.gz |
storage: seekable renamed to filesystem
Diffstat (limited to 'repository.go')
-rw-r--r-- | repository.go | 6 |
1 files changed, 3 insertions, 3 deletions
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") |