diff --git a/core/utils/file.go b/core/utils/file.go index 175eac87..21545c8b 100644 --- a/core/utils/file.go +++ b/core/utils/file.go @@ -187,7 +187,7 @@ func GetFileHash(filePath string) (res string, err error) { return hex.EncodeToString(hash.Sum(nil)), nil } -const IgnoreFileRegexPattern = `(^node_modules|__pycache__)/|\.(tmp|temp|log|swp|swo|bak|orig|lock|pid|pyc|pyo)$` +const IgnoreFileRegexPattern = `(^\.git|^node_modules|__pycache__)/|\.(tmp|temp|log|swp|swo|bak|orig|lock|pid|pyc|pyo)$` const scanDirectoryCacheTTL = 3 * time.Second var (