toAbsolutePaths converts relative paths to absolute paths based on the repository root
(repoRoot string, relativePaths []string)
| 36 | |
| 37 | // toAbsolutePaths converts relative paths to absolute paths based on the repository root |
| 38 | func toAbsolutePaths(repoRoot string, relativePaths []string) []string { |
| 39 | var absolutePaths []string |
| 40 | for _, relPath := range relativePaths { |
| 41 | absPath := filepath.Join(repoRoot, relPath) |
| 42 | absolutePaths = append(absolutePaths, absPath) |
| 43 | } |
| 44 | return absolutePaths |
| 45 | } |
| 46 | |
| 47 | func validateGitRef(ref string) error { |
| 48 | if ref == "" { |
no outgoing calls