Skip to content

gitattributes filter is case sensitive when using Filter #7017

@msedi

Description

@msedi

Reproduction steps

We need to use git-lfs and there implemented a Filter to manage the things myself.
Therefore there is an entry in .gitattributes to move certain items with a defined extensions `.irstbl' into LFS:

.gitattributes

*.irstbl filter=lfs diff=lfs merge=lfs -text
data/ringplot/** filter=lfs diff=lfs merge=lfs -text

The .gitconfig looks is this:

[core]
bare = false
repositoryformatversion = 0
filemode = false
ignorecase = true
logallrefupdates = true

The filter is added such:

GlobalSettings.RegisterFilter(new LfsFilter("LFS Filter", [new FilterAttributeEntry("lfs")]));

When I now make a Commands.Pull all files in the data/ringplot/** folders are evaluated correctly, but not the files in *.irstbl. The extensions of the file names are written as *.IRSTBL so there is a difference in the casing.

Expected behavior

Since I'm working on Windows and the PathComparer is set to IgnoreCase I was assuming that everything should work. But seems it doesn't.

Actual behavior

It seems filters are evaluated case sensitive.

Version of LibGit2Sharp (release number or SHA1)

0.31.ß

Operating system(s) tested; .NET runtime tested

Windows / .NET 9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions