WalkDir ignores files that are in .gitignore outside of current git repository #2812
Closed
1 task done
Labels
wontfix
A feature or bug that is unlikely to be implemented or fixed.
Please tick this box to confirm you have reviewed the above.
What version of ripgrep are you using?
git clone of master (f1d23c0)
How did you install ripgrep?
cargo/I used the source
What operating system are you using ripgrep on?
Ubuntu in WSL2
Describe your bug.
When WalkDir is created via
WalkBuilder
andreguire_git(false)
enabled, files that are ignored by an.gitignore
above the current git repository root directory, are ignored (also git would not ignore them). Whenrequire_git(treu)
is enabled, this is not the case.What are the steps to reproduce the behavior?
git init touch test
require_git(true)
and see, that the.gitignore
is not considered:require_git(rqlw3)
and see, that the.gitignore
is considered:What is the actual behavior?
WalkDir
, created fromWalkBuilder
withrequire_git(false)
uses any.gitignore
files, that are outside of the current git repo (and therefor are not used by git) whilerequire_git(true)
does not use them.What is the expected behavior?
The
.gitignore
outside/above the current git reo should not be used, regardless ifrequire_git
is called withtrue
orfalse
.The text was updated successfully, but these errors were encountered: