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

a "./" infront of the filename provides wrong matches #20

Closed
spMohanty opened this issue Mar 19, 2018 · 2 comments
Closed

a "./" infront of the filename provides wrong matches #20

spMohanty opened this issue Mar 19, 2018 · 2 comments

Comments

@spMohanty
Copy link

Consider the use case when you have a directory structure like this :

.
|-- 0.csv
|-- A
|   `-- 1.csv
`-- .gitignore

and the contents of .gitignore are :

*.csv
!A/0.csv

ignorespec.match_file("A/0.csv") returns True, which is expected.
while
ignorespec.match_file("./A/0.csv") returns False.

@cpburnz
Copy link
Owner

cpburnz commented Mar 26, 2018

@spMohanty Thank you for the two reports. I'll look into them this week.

@cpburnz
Copy link
Owner

cpburnz commented Apr 6, 2018

@spMohanty This is now supported.

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

No branches or pull requests

2 participants