Checks
Describe the bug you encountered:
When fd is executed from a nested directory it incorrectly ignores files that should be included based on the root .gitignore rules.
In the root directory I have a .gitignore containing this rule
/packages/*/logs
in my project I have the following files
/packages/api_next/src/models/logs/job/jobLogs.service.ts
/packages/api_next/src/models/logs/execution/executionLogs.module.ts
...
etc
When I call fd from my root it returns the files listed above. However, when I go to
/packages/api_next/
and then execute fd I receive no results.
Removing the line /packages/*/logs from gitignore resolves this issue
Describe what you expected to happen:
fd should correctly respect .gitignore and return all files in
/packages/api_next/src/models/logs/...
regardless of the cwd
What version of fd are you using?
9.0.0
Which operating system / distribution are you on?
Checks
Describe the bug you encountered:
When
fdis executed from a nested directory it incorrectly ignores files that should be included based on the root .gitignore rules.In the root directory I have a
.gitignorecontaining this rule/packages/*/logsin my project I have the following files
/packages/api_next/src/models/logs/job/jobLogs.service.ts/packages/api_next/src/models/logs/execution/executionLogs.module.ts...
etc
When I call
fdfrom my root it returns the files listed above. However, when I go to/packages/api_next/and then execute
fdI receive no results.Removing the line
/packages/*/logsfromgitignoreresolves this issueDescribe what you expected to happen:
fd should correctly respect .gitignore and return all files in
/packages/api_next/src/models/logs/...regardless of the cwd
What version of
fdare you using?9.0.0
Which operating system / distribution are you on?