-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some directories in .ignore aren't ignored #2836
Comments
Thanks for the bug report. I can reproduce this. Although here is something much simpler that doesn't rely on cluttering your
And then:
Moving into the sub-directory should still result in the This may also be related to #829 and #278, although not necessarily so. |
I think sharkdp/fd#1591 may be a case of this. |
@BurntSushi #2770 might also be related |
The previous code deleted too many parts of the path when constructing the absolute path, resulting in a shortened final path. This patch creates the correct absolute path by only removing the necessary parts. Fixes BurntSushi#2836
The previous code deleted too many parts of the path when constructing the absolute path, resulting in a shortened final path. This patch creates the correct absolute path by only removing the necessary parts. Fixes BurntSushi#2836
The previous code deleted too many parts of the path when constructing the absolute path, resulting in a shortened final path. This patch creates the correct absolute path by only removing the necessary parts. Fixes BurntSushi#2836
Please tick this box to confirm you have reviewed the above.
What version of ripgrep are you using?
ripgrep 14.1.0
How did you install ripgrep?
pacman
What operating system are you using ripgrep on?
Arch Linux
Describe your bug.
Some directories in ~/.ignore aren't ignored correctly.
What are the steps to reproduce the behavior?
Run this script
~/test
under~/testdir
:What is the actual behavior?
What is the expected behavior?
~/testdir/sub/sub2
should be ignored, i.e. therg: ./sub/sub2: Permission denied (os error 13)
error is unexpected.The text was updated successfully, but these errors were encountered: