aboutsummaryrefslogtreecommitdiffstats
path: root/repository.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-02-17 11:52:11 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2016-02-17 11:52:11 +0100
commit104be6870196d221a06291917c8660412a96cdbc (patch)
tree4c094cd6afb95cb2832f866b9411276418435819 /repository.go
parent1ac00554c3b5f88d2ddc2e28e7cfcdcad9d9f4bb (diff)
parenta964e32d92c53a47ce7c46d589a18c62133b8c50 (diff)
downloadgo-git-104be6870196d221a06291917c8660412a96cdbc.tar.gz
Merge pull request #28 from mcuadros/memory-object
storages: memory object
Diffstat (limited to 'repository.go')
-rw-r--r--repository.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/repository.go b/repository.go
index 2532c8d..c2665ff 100644
--- a/repository.go
+++ b/repository.go
@@ -7,6 +7,7 @@ import (
"gopkg.in/src-d/go-git.v2/clients/common"
"gopkg.in/src-d/go-git.v2/core"
"gopkg.in/src-d/go-git.v2/formats/packfile"
+ "gopkg.in/src-d/go-git.v2/storages/memory"
)
var (
@@ -49,7 +50,7 @@ func NewRepository(url string, auth common.AuthMethod) (*Repository, error) {
func NewPlainRepository() *Repository {
return &Repository{
Remotes: map[string]*Remote{},
- Storage: core.NewRAWObjectStorage(),
+ Storage: memory.NewObjectStorage(),
}
}