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

Function isGitCommandAvailable

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

Source from the content-addressed store, hash-verified

28}
29
30func isGitCommandAvailable(ctx context.Context) bool {
31 _, err := command.Output(ctx, "", expand.ListEnviron(os.Environ()...), "git", "version")
32 return err == nil
33}
34
35type CloneOptions struct {
36 URL string

Callers 2

NewGitCLIRepositoryFunction · 0.85
GetHashFunction · 0.85

Calls 1

EnvironMethod · 0.65

Tested by

no test coverage detected