Fix indirect git resource cycle detection

This commit is contained in:
Richard Marshall
2019-08-15 07:25:20 -07:00
parent c464fb0a81
commit 44b62a8ebc
2 changed files with 65 additions and 1 deletions

View File

@@ -179,7 +179,7 @@ func (fl *fileLoader) New(path string) (ifc.Loader, error) {
return nil, err
}
return newLoaderAtGitClone(
repoSpec, fl.validator, fl.fSys, fl.referrer, fl.cloner)
repoSpec, fl.validator, fl.fSys, fl, fl.cloner)
}
if filepath.IsAbs(path) {
return nil, fmt.Errorf("new root '%s' cannot be absolute", path)