File ignored by rg
due to .gitignore
while git
does not ignore it
#1197
Labels
duplicate
An issue that is duplicative of another.
What version of ripgrep are you using?
How did you install ripgrep?
From Arch Linux repos.
What operating system are you using ripgrep on?
Linux futpib-laptop 4.19.19-1-lts #1 SMP Thu Jan 31 17:56:49 CET 2019 x86_64 GNU/Linux
If this is a bug, what are the steps to reproduce the behavior?
Clone this repo: https://github.com/futpib/ripgrep-issue-1197.git
Run
rg findme
there.The repo contains a
.gitignore
:and a
./src/_foo/bar.js
file:If this is a bug, what is the actual behavior?
The file is not found (ignored with a glob from
.gitignore
).Output of
rg --debug findme
:https://gist.github.com/futpib/179fa5a027637652c12d4704b88c3b99#file-gistfile1-txt
If this is a bug, what is the expected behavior?
rg
should have found the file, as it is not ignored bygit
.git grep findme
finds it.The text was updated successfully, but these errors were encountered: