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-06 06:46:49 +02:00
committed by GitHub
co-authored by Tim Costa
parent 602ced7e71
commit 9a25f4ed2d
+2 -2
View File
@@ -306,9 +306,9 @@ func main() {
if err != nil {
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 {
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