prow/pod-utils/clone/clone.go
func gitCtxForRefs(refs prowapi.Refs, baseDir string, env []string) gitCtx {
	g := gitCtx{
		cloneDir:      PathForRefs(baseDir, refs),
		env:           env,
		repositoryURI: fmt.Sprintf("https://github.com/%s/%s.git", refs.Org, refs.Repo),
	}
	if refs.CloneURI != "" {
		g.repositoryURI = refs.CloneURI
	}
	return g
}
func gitCtxForRefs(refs prowapi.Refs, baseDir string, env []string) gitCtx {
	g := gitCtx{
		cloneDir:      PathForRefs(baseDir, refs),
		env:           env,
		repositoryURI: fmt.Sprintf("https://github.com/%s/%s.git", refs.Org, refs.Repo),
	}
	if refs.CloneURI != "" {
		g.repositoryURI = refs.CloneURI
	}
	return g
}
func gitCtxForRefs ( refs prowapi . Refs , baseDir string , env [ ] string ) gitCtx { g := gitCtx { cloneDir : PathForRefs ( baseDir , refs ) , env : env , repositoryURI : fmt . Sprintf ( " " , refs . Org , refs . Repo ) , } if refs . CloneURI != " " { g . repositoryURI = refs . CloneURI } return g }
// gitCtxForRefs creates a gitCtx based on the provide refs and baseDir.
gitCtxForRefs creates a gitCtx based on the provide refs and baseDir .