File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -8,26 +8,13 @@ import (
8
8
"gopkg.in/src-d/go-git.v4/plumbing/cache"
9
9
"gopkg.in/src-d/go-git.v4/plumbing/transport"
10
10
"gopkg.in/src-d/go-git.v4/storage/filesystem"
11
- "gopkg.in/src-d/go-git.v4/storage/memory"
12
11
)
13
12
14
13
// Cloner represents a cloner of git repository.
15
14
type Cloner interface {
16
15
CloneRepository (url string , auth transport.AuthMethod ) (* git.Repository , error )
17
16
}
18
17
19
- // MemoryCloner clones a git repository in memory.
20
- type MemoryCloner struct {}
21
-
22
- // CloneRepository clones a git repository given its information.
23
- func (* MemoryCloner ) CloneRepository (url string , auth transport.AuthMethod ) (* git.Repository , error ) {
24
- return git .Clone (memory .NewStorage (), nil , & git.CloneOptions {
25
- URL : url ,
26
- Progress : ioutil .Discard ,
27
- Auth : auth ,
28
- })
29
- }
30
-
31
18
// DiskCloner closes a git repository on disk in a temporary file.
32
19
type DiskCloner struct {}
33
20
You can’t perform that action at this time.
0 commit comments