mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-05 23:09:32 +01:00
Fix #4333, as `is_ignored_file` and `is_ignored_dir` and `__call__` share the same call `DvcIgnorePatterns.matches`, we only need to focus on the out of repo situation. 1. Add tests for the `is_ignored_file` and `is_ignored_dir` for the out of repo condition. 2. Now `is_ignored_file` and `is_ignored_dir` returns false for those files outside the repo.