(path string)
| 131 | } |
| 132 | |
| 133 | func (g gitRemoteLoader) Dir(path string) string { |
| 134 | return g.known[path] |
| 135 | } |
| 136 | |
| 137 | // validateGitSubDir ensures a subdirectory path is contained within the base directory |
| 138 | // and doesn't escape via path traversal. Unlike validatePathInBase for OCI artifacts, |
no outgoing calls