Clone a repository into the given Storer and worktree Filesystem with the given options, if worktree is nil a bare repository is created. If the given storer is not empty ErrRepositoryAlreadyExists is returned.
(s storage.Storer, worktree billy.Filesystem, o *CloneOptions)
| 225 | // given options, if worktree is nil a bare repository is created. If the given |
| 226 | // storer is not empty ErrRepositoryAlreadyExists is returned. |
| 227 | func Clone(s storage.Storer, worktree billy.Filesystem, o *CloneOptions) (*Repository, error) { |
| 228 | return CloneContext(context.Background(), s, worktree, o) |
| 229 | } |
| 230 | |
| 231 | // CloneContext a repository into the given Storer and worktree Filesystem with |
| 232 | // the given options, if worktree is nil a bare repository is created. If the |
searching dependent graphs…