-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[Bug]: Nested .gitignore files are not respected #2761
Copy link
Copy link
Open
Labels
type: bugSomething isn't working.Something isn't working.
Description
Bug Description
When running :sync to index a codebase, .gitignore files located in subdirectories are not respected. As a result, files and directories that should be excluded based on nested .gitignore rules are still processed.
Steps to Reproduce
- Create a project with the following structure:
project/
frontend/
node_modules/
.gitignore
.gitignore
- Add the following content to the root
.gitignore:
.idea
*.iml
out
gen
- Add the following content to
frontend/.gitignore:
node_modules/
.nuxt
- Populate the
frontend/node_modulesdirectory (fe.npm install <lib>) - Run the
:synccommand to index the project.
Expected Behavior
The frontend/node_modules/ directory should be excluded from processing.
Actual Behavior
A pretty simple project required syncing over 316 883 files (it included logs, node_modules etc).
Error Logs
Forge Version
2.3.2
Operating System
None
OS Version
No response
AI Provider
None
Model
No response
Installation Method
npx forgecode@latest
Configuration
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type: bugSomething isn't working.Something isn't working.