Bug Description
When the .gitignore file contains certain patterns like .*/, the root repository is marked as ignored. As a result, the indexer finds zero file to index.
Steps to Reproduce
Create a repository with a .gitignore file containing .*/ and add files to that repository. Run grepai watch and notice that no file is indexed.
Expected Behavior
The .*/ pattern in .gitignore is there only to prevent committing local-only folders, unless -f is specified. It should only match the subdirectories of the Git repository root, and not the repository root itself.
Actual Behavior
The indexer does not find any file to index.
grepai Version
grepai version 0.35.0
Operating System
macOS
Embedding Provider
Not applicable
Relevant Logs
Configuration
Checklist
Bug Description
When the
.gitignorefile contains certain patterns like.*/, the root repository is marked as ignored. As a result, the indexer finds zero file to index.Steps to Reproduce
Create a repository with a .gitignore file containing
.*/and add files to that repository. Rungrepai watchand notice that no file is indexed.Expected Behavior
The
.*/pattern in.gitignoreis there only to prevent committing local-only folders, unless-fis specified. It should only match the subdirectories of the Git repository root, and not the repository root itself.Actual Behavior
The indexer does not find any file to index.
grepai Version
grepai version 0.35.0
Operating System
macOS
Embedding Provider
Not applicable
Relevant Logs
Configuration
Checklist