Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit d66fcf8

Browse files
committed
storage: seekable renamed to filesystem
1 parent 482e0ea commit d66fcf8

19 files changed

+23
-23
lines changed

clients/common_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type SuiteCommon struct {
2020

2121
var _ = Suite(&SuiteCommon{})
2222

23-
const fixtureTGZ = "../storage/seekable/internal/gitdir/fixtures/spinnaker-gc.tgz"
23+
const fixtureTGZ = "../storage/filesystem/internal/gitdir/fixtures/spinnaker-gc.tgz"
2424

2525
func (s *SuiteCommon) SetUpSuite(c *C) {
2626
var err error

examples/fs_implementation/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func TestMain(m *testing.M) {
2020

2121
func setUp() {
2222
var err error
23-
repo, err = tgz.Extract("../../storage/seekable/internal/gitdir/fixtures/spinnaker-gc.tgz")
23+
repo, err = tgz.Extract("../../storage/filesystem/internal/gitdir/fixtures/spinnaker-gc.tgz")
2424
if err != nil {
2525
panic(err)
2626
}

repository.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"gopkg.in/src-d/go-git.v4/clients/common"
88
"gopkg.in/src-d/go-git.v4/core"
99
"gopkg.in/src-d/go-git.v4/formats/packfile"
10+
"gopkg.in/src-d/go-git.v4/storage/filesystem"
1011
"gopkg.in/src-d/go-git.v4/storage/memory"
11-
"gopkg.in/src-d/go-git.v4/storage/seekable"
1212
"gopkg.in/src-d/go-git.v4/utils/fs"
1313
)
1414

@@ -56,7 +56,7 @@ func NewRepositoryFromFS(fs fs.FS, path string) (*Repository, error) {
5656
repo := NewPlainRepository()
5757

5858
var err error
59-
repo.Storage, err = seekable.New(fs, path)
59+
repo.Storage, err = filesystem.New(fs, path)
6060

6161
return repo, err
6262
}
@@ -239,7 +239,7 @@ func (r *Repository) remoteHead(remote string) (core.Hash, error) {
239239
}
240240

241241
func (r *Repository) localHead() (core.Hash, error) {
242-
storage, ok := r.Storage.(*seekable.ObjectStorage)
242+
storage, ok := r.Storage.(*filesystem.ObjectStorage)
243243
if !ok {
244244
return core.ZeroHash,
245245
fmt.Errorf("cannot retrieve local head: no local data found")

repository_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66

77
"gopkg.in/src-d/go-git.v4/clients/http"
88
"gopkg.in/src-d/go-git.v4/core"
9-
"gopkg.in/src-d/go-git.v4/storage/seekable"
9+
"gopkg.in/src-d/go-git.v4/storage/filesystem"
1010
"gopkg.in/src-d/go-git.v4/utils/fs"
1111

1212
"github.com/alcortesm/tgz"
@@ -20,7 +20,7 @@ var dirFixturesInit = [...]struct {
2020
}{
2121
{
2222
name: "binrels",
23-
tgz: "storage/seekable/internal/gitdir/fixtures/alcortesm-binary-relations.tgz",
23+
tgz: "storage/filesystem/internal/gitdir/fixtures/alcortesm-binary-relations.tgz",
2424
head: "c44b5176e99085c8fe36fa27b045590a7b9d34c9",
2525
},
2626
}
@@ -87,7 +87,7 @@ func (s *SuiteRepository) TestNewRepositoryFromFS(c *C) {
8787
c.Assert(err, ErrorMatches, `unable to find remote "origin"`)
8888

8989
c.Assert(repo.Storage, NotNil, com)
90-
c.Assert(repo.Storage, FitsTypeOf, &seekable.ObjectStorage{}, com)
90+
c.Assert(repo.Storage, FitsTypeOf, &filesystem.ObjectStorage{}, com)
9191
}
9292
}
9393

storage/seekable/internal/gitdir/fixtures/alcortesm-binary-relations-no-idx.tgz renamed to storage/filesystem/internal/gitdir/fixtures/alcortesm-binary-relations-no-idx.tgz

File renamed without changes.

storage/seekable/internal/gitdir/fixtures/alcortesm-binary-relations.tgz renamed to storage/filesystem/internal/gitdir/fixtures/alcortesm-binary-relations.tgz

File renamed without changes.

storage/seekable/internal/gitdir/fixtures/empty-gitdir.tgz renamed to storage/filesystem/internal/gitdir/fixtures/empty-gitdir.tgz

File renamed without changes.

storage/seekable/internal/gitdir/fixtures/no-packfile-no-idx.tgz renamed to storage/filesystem/internal/gitdir/fixtures/no-packfile-no-idx.tgz

File renamed without changes.

storage/seekable/internal/gitdir/fixtures/ref-deltas-no-idx.tgz renamed to storage/filesystem/internal/gitdir/fixtures/ref-deltas-no-idx.tgz

File renamed without changes.

storage/seekable/internal/gitdir/fixtures/spinnaker-gc.tgz renamed to storage/filesystem/internal/gitdir/fixtures/spinnaker-gc.tgz

File renamed without changes.

0 commit comments

Comments
 (0)