Compare commits

..
1 Commits
Author SHA1 Message Date
Zachary Rice 61ee7c58cc fix no-git bug (#859) 2022-04-27 21:48:56 -05:00
+1 -1
View File
@@ -335,7 +335,7 @@ func (d *Detector) DetectFiles(source string) ([]report.Finding, error) {
if err != nil { if err != nil {
return err return err
} }
if fInfo.Name() == ".git" { if fInfo.Name() == ".git" && fInfo.IsDir() {
return filepath.SkipDir return filepath.SkipDir
} }
if fInfo.Mode().IsRegular() { if fInfo.Mode().IsRegular() {