Skip to content

Conversation

@daniel-lxs
Copy link
Contributor

This fixes a path resolution bug in the ripgrep search results formatting.

The issue was that path.relative() was being called on paths that might already be relative, which could cause incorrect path resolution. The fix checks if the path is absolute before calling path.relative(), otherwise uses it as-is.

Changes:

Note: This PR excludes the upstream test file that relies on GitIgnoreController (which doesn't exist in this fork - we use RooIgnoreController instead). The core bug fix remains applicable.

j-east and others added 2 commits October 10, 2025 16:43
…and integrate with RooIgnoreController, Task, searchFilesTool; add tests; ripgrep formatting fix
@daniel-lxs daniel-lxs changed the title fix: path resolution bug in ripgrep search results Fix/issue 7921 search files includes files ignored by nested gitignore Oct 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants