Open daavoo opened 2 years ago
$ cat .gitignore /data/ $ git check-ignore data -v .gitignore:1:/data/ data $ python >>> from dulwich import ignore >>> a = ignore.IgnoreFilter((ignore.read_ignore_patterns(open(".gitignore", "rb")))) >>> a.is_ignored("data") >>> a.is_ignored("data/") True
Originally posted by @daavoo in https://github.com/iterative/dvc/issues/7815#issuecomment-1139442721
Help with this would be great. The first step is probably to add an entry to dulwich/tests/test_ignore.py reproducing this test case.
Originally posted by @daavoo in https://github.com/iterative/dvc/issues/7815#issuecomment-1139442721