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 5f5b8959d6
commit 9d76bac4ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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
}