MCPcopy Create free account
hub / github.com/dagger/dagger / Remote

Method Remote

core/git_local.go:39–53  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

37}
38
39func (repo *LocalGitRepository) Remote(ctx context.Context) (*gitutil.Remote, error) {
40 var remote *gitutil.Remote
41 err := repo.mount(ctx, 0, false, nil, func(git *gitutil.GitCLI) error {
42 gitURL, err := git.URL(ctx)
43 if err != nil {
44 return err
45 }
46 remote, err = gitutil.NewGitCLI().LsRemote(ctx, gitURL)
47 return err
48 })
49 if err != nil {
50 return nil, err
51 }
52 return remote, nil
53}
54
55func (repo *LocalGitRepository) File(ctx context.Context, filename string) (*File, error) {
56 var gitDir string

Callers

nothing calls this directly

Calls 4

mountMethod · 0.95
NewGitCLIFunction · 0.92
LsRemoteMethod · 0.80
URLMethod · 0.45

Tested by

no test coverage detected