Skip to content

Solve result inconsistency of the DvcIgnoreFilter#4378

Merged
efiop merged 1 commit into
treeverse:masterfrom
karajan1001:fix_4333
Aug 12, 2020
Merged

Solve result inconsistency of the DvcIgnoreFilter#4378
efiop merged 1 commit into
treeverse:masterfrom
karajan1001:fix_4333

Conversation

@karajan1001
Copy link
Copy Markdown
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 treeverse#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 treeverse:master Aug 12, 2020
@efiop
Copy link
Copy Markdown
Contributor

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