fix: filepaths with git anywhere in them being erroneously excluded (#828)

Co-authored-by: Tim Costa <timcosta@amazon.com>
This commit is contained in:
Tim Costa 2022-07-05 23:46:49 -05:00 committed by GitHub
parent 602ced7e71
commit 9a25f4ed2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -306,9 +306,9 @@ func main() {
if err != nil { if err != nil {
fmt.Fprintf(os.Stderr, "\nError: failed to exclude the %q directory from scan", "vendor") fmt.Fprintf(os.Stderr, "\nError: failed to exclude the %q directory from scan", "vendor")
} }
err = flag.Set("exclude-dir", ".git") err = flag.Set("exclude-dir", "\\.git/")
if err != nil { if err != nil {
fmt.Fprintf(os.Stderr, "\nError: failed to exclude the %q directory from scan", ".git") fmt.Fprintf(os.Stderr, "\nError: failed to exclude the %q directory from scan", "\\.git/")
} }
// set for exclude // set for exclude