MCPcopy Index your code
hub / github.com/devspace-sh/devspace / Pull

Method Pull

pkg/util/git/git.go:93–100  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

91}
92
93func (gr *GitCLIRepository) Pull(ctx context.Context) error {
94 out, err := command.CombinedOutput(ctx, gr.LocalPath, expand.ListEnviron(os.Environ()...), "git", "-C", gr.LocalPath, "pull")
95 if err != nil {
96 return errors.Errorf("Error running 'git pull %s': %v -> %s", gr.LocalPath, err, string(out))
97 } else {
98 return nil
99 }
100}

Callers 4

DownloadBinaryMethod · 0.95
DownloadMetadataMethod · 0.95
DownloadDependencyFunction · 0.95
UpdateMethod · 0.80

Calls 2

EnvironMethod · 0.65
ErrorfMethod · 0.45

Tested by

no test coverage detected