Skip to content

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

@spMohanty

Description

@spMohanty

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions