Skip to content
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

Solve result inconsistency of the DvcIgnoreFilter #4378

Merged
merged 1 commit into from
Aug 12, 2020

Conversation

karajan1001
Copy link
Contributor

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.

Thank you for the contribution - we'll try to review it as soon as possible. πŸ™

Fix iterative#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.
@pared pared self-requested a review August 12, 2020 11:30
@efiop efiop merged commit e3cfa73 into iterative:master Aug 12, 2020
@efiop
Copy link
Member

efiop commented Aug 12, 2020

Thank you @karajan1001 ! πŸ™

@karajan1001 karajan1001 deleted the fix_4333 branch April 7, 2021 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Result inconsistency for __call__, is_ignored_file and is_ignored_dir
3 participants