aboutsummaryrefslogtreecommitdiffstats
path: root/repository.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-01-29 22:53:24 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2017-01-29 22:53:24 +0100
commita052498f23198ad1f2e9ca8f9943d2a48e274c06 (patch)
tree40c80303c860574310830306b00747ad75a7b31b /repository.go
parentacb1dc80d93f45a055b14903679abca3a6e994f6 (diff)
downloadgo-git-a052498f23198ad1f2e9ca8f9943d2a48e274c06.tar.gz
Repository.Clone made private
Diffstat (limited to 'repository.go')
-rw-r--r--repository.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/repository.go b/repository.go
index dd6663a..c49042f 100644
--- a/repository.go
+++ b/repository.go
@@ -12,7 +12,7 @@ import (
"gopkg.in/src-d/go-git.v4/plumbing/storer"
"gopkg.in/src-d/go-git.v4/storage/filesystem"
- billy "srcd.works/go-billy.v1"
+ "srcd.works/go-billy.v1"
osfs "srcd.works/go-billy.v1/os"
)
@@ -101,7 +101,7 @@ func Clone(s Storer, worktree billy.Filesystem, o *CloneOptions) (*Repository, e
return nil, err
}
- return r, r.Clone(o)
+ return r, r.clone(o)
}
// PlainInit create an empty git repository at the given path. isBare defines
@@ -160,7 +160,7 @@ func PlainClone(path string, isBare bool, o *CloneOptions) (*Repository, error)
return nil, err
}
- return r, r.Clone(o)
+ return r, r.clone(o)
}
func newRepository(s Storer, worktree billy.Filesystem) *Repository {
@@ -246,7 +246,7 @@ func (r *Repository) DeleteRemote(name string) error {
}
// Clone clones a remote repository
-func (r *Repository) Clone(o *CloneOptions) error {
+func (r *Repository) clone(o *CloneOptions) error {
if err := o.Validate(); err != nil {
return err
}