MCPcopy Create free account
hub / github.com/devfile/devworkspace-operator / GetClonePath

Function GetClonePath

pkg/library/projects/clone.go:154–159  ·  view source on GitHub ↗

GetClonePath gets the correct clonePath for a project, given the semantics in devfile/api

(project *dw.Project)

Source from the content-addressed store, hash-verified

152
153// GetClonePath gets the correct clonePath for a project, given the semantics in devfile/api
154func GetClonePath(project *dw.Project) string {
155 if project.ClonePath != "" {
156 return project.ClonePath
157 }
158 return project.Name
159}
160
161func hasContainerComponents(workspace *dw.DevWorkspaceTemplateSpec) bool {
162 for _, component := range workspace.Components {

Callers 2

getDevfileFromProjectFunction · 0.92
ValidateAllProjectsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected