Skip to content

Commit 711ef9c

Browse files
committed
Handle local with source repo correctly
1 parent bab5ab5 commit 711ef9c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/frontend/vcs/source/find.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ func (ff *FileFinder) loadConfig(ctx context.Context) {
131131

132132
// fetchRepoFile fetches the file content from the configured repository.
133133
func (arg FileFinder) fetchRepoFile(ctx context.Context, path, ref string) (*vcsv1.GetFileResponse, error) {
134+
if arg.rootPath != "" {
135+
path = filepath.Join(arg.rootPath, path)
136+
}
134137
content, err := arg.client.GetFile(ctx, client.FileRequest{
135138
Owner: arg.repo.GetOwnerName(),
136139
Repo: arg.repo.GetRepoName(),

0 commit comments

Comments
 (0)