aboutsummaryrefslogtreecommitdiffstats
path: root/repository.go
diff options
context:
space:
mode:
authorJavi Fontan <jfontan@gmail.com>2018-08-30 18:33:37 +0200
committerJavi Fontan <jfontan@gmail.com>2018-08-30 18:33:37 +0200
commit82945e31dd8bce5fc51d4fd16d696a6d326e5f44 (patch)
tree0ebee0c8101266230e60edc47a1f3696722173ee /repository.go
parent1e1a7d0623459807d6f1e871492147f971f7540c (diff)
downloadgo-git-82945e31dd8bce5fc51d4fd16d696a6d326e5f44.tar.gz
git, storer: use a common storer.Options for storer and PlainOpen
Signed-off-by: Javi Fontan <jfontan@gmail.com>
Diffstat (limited to 'repository.go')
-rw-r--r--repository.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/repository.go b/repository.go
index d99d6eb..4ad5252 100644
--- a/repository.go
+++ b/repository.go
@@ -251,11 +251,7 @@ func PlainOpenWithOptions(path string, o *PlainOpenOptions) (*Repository, error)
return nil, err
}
- so := filesystem.StorageOptions{
- Static: o.Static,
- }
-
- s, err := filesystem.NewStorageWithOptions(dot, so)
+ s, err := filesystem.NewStorageWithOptions(dot, o.Storage)
if err != nil {
return nil, err
}