1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-09-15 18:57:01 +00:00

walk submodule path instead of dir name (#1282)

* walk submodule path instead of dir name

* use file path instead of relative path

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
Ermal Kaleci 2022-07-28 16:16:30 +02:00 committed by GitHub
parent 1df5832dc5
commit 99d7ac2a9b

View file

@ -143,7 +143,7 @@ func (fc *fileCollector) collectFiles(ctx context.Context, submodulePath []strin
}
}
if err == nil && entry.Mode == filemode.Submodule {
err = fc.Fs.Walk(fi.Name(), fc.collectFiles(ctx, split))
err = fc.Fs.Walk(file, fc.collectFiles(ctx, split))
if err != nil {
return err
}