Relative Path When scanning Local Repos

This commit is contained in:
suhasgumma
2022-11-15 10:22:04 +05:30
parent 17a2547f18
commit 2e30995bfc
+2
View File
@@ -103,6 +103,8 @@ func getResourcesFromPath(path string) (map[string]reporthandling.Source, []work
gitRepo, err := cautils.NewLocalGitRepository(path)
if err == nil && gitRepo != nil {
repoRoot, _ = gitRepo.GetRootDir()
} else {
repoRoot, _ = filepath.Abs(path)
}
// load resource from local file system