diff --git a/src/extension/embeddings.ts b/src/extension/embeddings.ts index 04c3ea5a..82339516 100644 --- a/src/extension/embeddings.ts +++ b/src/extension/embeddings.ts @@ -103,6 +103,7 @@ export class EmbeddingDatabase extends Base { ) ig.add(embeddingIgnoredGlobs) + ig.add([".git", ".gitignore"]) const gitIgnoreFilePath = path.join(rootPath, ".gitignore") diff --git a/src/extension/utils.ts b/src/extension/utils.ts index 8d87f4f4..42f34566 100644 --- a/src/extension/utils.ts +++ b/src/extension/utils.ts @@ -663,6 +663,7 @@ export async function getAllFilePaths(dirPath: string): Promise { ) ig.add(embeddingIgnoredGlobs) + ig.add([".git", ".gitignore"]) const gitIgnoreFilePath = path.join(rootPath, ".gitignore")