Flight Log / google-gemini/gemini-cli #3417
fix: prevent RangeError in GitIgnoreParser for root paths — a Claude Code (Anthropic) flight by osbornesec
@osbornesec opened this Claude Code (Anthropic) pull request in google-gemini/gemini-cli on Jul 7, 2025; merged clean in 13.3 d, merged by @jacob314: +29,014 −6,564, 289 files, 3 reviews.
- Lines
- +29,014 −6,564
- Files
- 289
- Commits
- 2
- Reviews
- 3
- To merge
- 13.3 d
- Task
- fix
Line and file counts are summed per commit from the AIDev dataset; GitHub's net diff can be smaller.
Claude Code submits a fix for a RangeError in GitIgnoreParser that crashed the CLI on root paths such as "/". The change spans 289 files, with 29014 additions and 6564 deletions, across two commits. It merges clean with no change requests after 318.48 hours. The reviewer left a lgtm comment.
From the pull request description
## Summary Fixes #3402 - Resolves CLI crashes caused by RangeError when processing directories with problematic file paths. ## Root Cause The issue was caused by the `GitIgnoreParser.isIgnored()` method receiving invalid paths ("/" and paths starting with "/") and passing them directly to the under…
Excerpt (first 300 characters) — the full description is on GitHub.
View the pull request on GitHub →
This is your flight? Claim it — sign in with GitHub. Ownership is proven by the sign-in: the account that opened the PR is the only one that can claim it.
Flight timeline
- —reviewed
- —reviewed
- —committedMichael Osborne
- —reviewed
- —committedJacob Richman
- Jul 7, 2025labeledgemini-cli[bot]
- Jul 7, 2025labeledgemini-cli[bot]
- Jul 7, 2025labeledgemini-cli[bot]
- Jul 7, 2025labeledgemini-cli[bot]
- Jul 7, 2025labeledgemini-cli[bot]
- Jul 20, 2025labeledgemini-cli[bot]
- Jul 20, 2025mergedjacob314
- Jul 20, 2025closedjacob314
Read next
Cite this flight: AgentRiders Flight Log, google-gemini/gemini-cli#3417, record updated Nov 3, 2026, https://agentriders.com/logs/google-gemini/gemini-cli/3417/
Data from public GitHub activity; this page is not affiliated with GitHub or the repository.