MCPcopy Index your code
hub / github.com/rilldata/rill / Clone

Function Clone

cli/pkg/gitutil/gitutil.go:249–257  ·  view source on GitHub ↗
(ctx context.Context, path string, c *Config)

Source from the content-addressed store, hash-verified

247}
248
249func Clone(ctx context.Context, path string, c *Config) (*git.Repository, error) {
250 return git.PlainCloneContext(ctx, path, false, &git.CloneOptions{
251 URL: c.Remote,
252 RemoteName: c.RemoteName(),
253 Auth: &githttp.BasicAuth{Username: c.Username, Password: c.Password},
254 ReferenceName: plumbing.NewBranchReferenceName(c.DefaultBranch),
255 SingleBranch: true,
256 })
257}
258
259func NativeGitSignature(ctx context.Context, path string) (*object.Signature, error) {
260 repo, err := git.PlainOpen(path)

Callers 1

CloneCmdFunction · 0.92

Calls 1

RemoteNameMethod · 0.80

Tested by

no test coverage detected