MCPcopy Create free account
hub / github.com/go-git/go-git / PlainClone

Function PlainClone

repository.go:458–460  ·  view source on GitHub ↗

PlainClone a repository into the path with the given options, isBare defines if the new repository will be bare or normal. If the path is not empty ErrRepositoryAlreadyExists is returned. TODO(mcuadros): move isBare to CloneOptions in v5

(path string, isBare bool, o *CloneOptions)

Source from the content-addressed store, hash-verified

456//
457// TODO(mcuadros): move isBare to CloneOptions in v5
458func PlainClone(path string, isBare bool, o *CloneOptions) (*Repository, error) {
459 return PlainCloneContext(context.Background(), path, isBare, o)
460}
461
462// PlainCloneContext a repository into the path with the given options, isBare
463// defines if the new repository will be bare or normal. If the path is not empty

Calls 1

PlainCloneContextFunction · 0.85