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

Comments

@spMohanty
Copy link

@spMohanty spMohanty commented Mar 19, 2018

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

This comment has been minimized.

Copy link
Owner

@cpburnz cpburnz commented Mar 26, 2018

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

@cpburnz

This comment has been minimized.

Copy link
Owner

@cpburnz cpburnz commented Apr 6, 2018

@spMohanty This is now supported.

@cpburnz cpburnz closed this Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.