MCPcopy
hub / github.com/go-git/go-git / PlainClone

Function PlainClone

repository.go:465–467  ·  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

463//
464// TODO(mcuadros): move isBare to CloneOptions in v5
465func PlainClone(path string, isBare bool, o *CloneOptions) (*Repository, error) {
466 return PlainCloneContext(context.Background(), path, isBare, o)
467}
468
469// PlainCloneContext a repository into the path with the given options, isBare
470// defines if the new repository will be bare or normal. If the path is not empty

Calls 1

PlainCloneContextFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…