From aba7be3b86e289d80d37d837c30ba51a6d1bfe3e Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Wed, 3 Dec 2025 15:45:18 +0800 Subject: [PATCH] fix: update IgnoreFileRegexPattern to exclude .git directory --- core/utils/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 (