gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

ReadManyFiles can't read .gitignored files. even with respectGitIgnore: false

Open psytor opened this issue 1 year ago • 3 comments

What happened?

I've set my settings.json with the following:

         "respectGitIgnore": false
        }

Since I have that, ReadFile works fine, but ReadManyFiles is still triggered with :

 │    **Skipped 1 item(s):**                                                                                                                                                 │
 │    - `2 file(s)` (Reason: ignored)

What did you expect to happen?

That ReadManyFiles can read .gitignore files

Client information

╭────────────────────────────────────────────────────────────╮
│                                                            │
│ About Gemini CLI                                           │
│                                                            │
│ CLI Version         0.1.12                                 │
│ Git Commit          b29c02dd (local modifications)         │
│ Model               gemini-2.5-flash                       │
│ Sandbox             no sandbox                             │
│ OS                  linux                                  │
│ Auth Method         gemini-api-key                         │
│                                                            │
╰────────────────────────────────────────────────────────────╯

Login information

Google Account, API key

Anything else we need to know?

No response

psytor avatar Jul 16 '25 13:07 psytor

Found possible duplicate issues:

  • #3486: (0.914182359825515)
  • #3151: (0.9131267291122734)
  • #3072: (0.9049709922040692)
  • #3382: (0.9038270654575283)
  • #2843: (0.9025221408916811)

gsquared94 avatar Jul 30 '25 01:07 gsquared94

Can anybody reproduce this issue or was it fixed by #3727

It seems fine to me:

Image Image

I wonder if there are a few issues throughout #5485 that were resolved by #3727

psinha40898 avatar Aug 14 '25 19:08 psinha40898

Resolved by https://github.com/google-gemini/gemini-cli/pull/3727

SandyTao520 avatar Aug 22 '25 18:08 SandyTao520