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

ignore: Doesn't match git check-ignore when pattern contains slash at beggining and end. #972

Open
daavoo opened this issue May 27, 2022 · 1 comment
Labels

Comments

@daavoo
Copy link

daavoo commented May 27, 2022

$ 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 iterative/dvc#7815 (comment)

@jelmer jelmer added the bug label Jun 5, 2022
@jelmer
Copy link
Owner

jelmer commented Jun 5, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants