Skip to content

Commit

Permalink
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/policy/config_finder.go
Original file line number Diff line number Diff line change
@@ -70,7 +70,9 @@ func (f *ConfigFinderImpl) Find(policyFilePath, wd string) (string, error) {
}

func (f *ConfigFinderImpl) exist(p string) bool {
b, err := afero.IsDir(f.fs, p)
// https://github.com/orgs/aquaproj/discussions/2476
// Using `git worktree`, .git is a file.
b, err := afero.Exists(f.fs, p)
if err != nil {
return false
}

0 comments on commit febc951

Please sign in to comment.