Skip to content

Commit

Permalink
fix no-git bug (#859)
Browse files Browse the repository at this point in the history
  • Loading branch information
zricethezav committed Apr 28, 2022
1 parent ad7509e commit 61ee7c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detect/detect.go
Expand Up @@ -335,7 +335,7 @@ func (d *Detector) DetectFiles(source string) ([]report.Finding, error) {
if err != nil {
return err
}
if fInfo.Name() == ".git" {
if fInfo.Name() == ".git" && fInfo.IsDir() {
return filepath.SkipDir
}
if fInfo.Mode().IsRegular() {
Expand Down

0 comments on commit 61ee7c5

Please sign in to comment.