aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--options.go4
-rw-r--r--repository.go2
-rw-r--r--repository_test.go22
3 files changed, 1 insertions, 27 deletions
diff --git a/options.go b/options.go
index f67a454..7b1570f 100644
--- a/options.go
+++ b/options.go
@@ -9,7 +9,6 @@ import (
"gopkg.in/src-d/go-git.v4/plumbing"
"gopkg.in/src-d/go-git.v4/plumbing/object"
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/sideband"
- "gopkg.in/src-d/go-git.v4/plumbing/storer"
"gopkg.in/src-d/go-git.v4/plumbing/transport"
)
@@ -429,9 +428,6 @@ func (o *GrepOptions) Validate(w *Worktree) error {
// PlainOpenOptions describes how opening a plain repository should be
// performed.
type PlainOpenOptions struct {
- // Storage layer options.
- Storage storer.Options
-
// DetectDotGit defines whether parent directories should be
// walked until a .git directory or file is found.
DetectDotGit bool
diff --git a/repository.go b/repository.go
index 4ad5252..f619934 100644
--- a/repository.go
+++ b/repository.go
@@ -251,7 +251,7 @@ func PlainOpenWithOptions(path string, o *PlainOpenOptions) (*Repository, error)
return nil, err
}
- s, err := filesystem.NewStorageWithOptions(dot, o.Storage)
+ s, err := filesystem.NewStorage(dot)
if err != nil {
return nil, err
}
diff --git a/repository_test.go b/repository_test.go
index 8956a9d..261af7a 100644
--- a/repository_test.go
+++ b/repository_test.go
@@ -550,28 +550,6 @@ func (s *RepositorySuite) TestPlainOpenNotExistsDetectDotGit(c *C) {
c.Assert(r, IsNil)
}
-func (s *RepositorySuite) TestPlainOpenStatic(c *C) {
- dir, err := ioutil.TempDir("", "plain-open")
- c.Assert(err, IsNil)
- defer os.RemoveAll(dir)
-
- r, err := PlainInit(dir, true)
- c.Assert(err, IsNil)
- c.Assert(r, NotNil)
-
- op := &PlainOpenOptions{
- Storage: storer.Options{Static: true},
- }
-
- r, err = PlainOpenWithOptions(dir, op)
- c.Assert(err, IsNil)
- c.Assert(r, NotNil)
-
- sto, ok := r.Storer.(*filesystem.Storage)
- c.Assert(ok, Equals, true)
- c.Assert(sto.Options.Static, Equals, true)
-}
-
func (s *RepositorySuite) TestPlainClone(c *C) {
r, err := PlainClone(c.MkDir(), false, &CloneOptions{
URL: s.GetBasicLocalRepositoryURL(),