Skip to content

Read-only doesn't set if path in .gitattributes contains slash on WindowsΒ #3781

@crazycoderx2

Description

@crazycoderx2
  1. git clone https://bitbucket.org/crazycoderx/lfs-test.git
  2. attrib /S /D .
A    R               F:\lfs-test\bin\1\1.tga
A                    F:\lfs-test\bin\1\actionadded.ico
A                    F:\lfs-test\bin\1\WhatsApp Image 2018-06-02 at 00.03.01 (4).jpeg
                     F:\lfs-test\bin\1
A    R               F:\lfs-test\bin\1.tga
A                    F:\lfs-test\bin\actionadded.ico
A                    F:\lfs-test\bin\actiondeleted.ico
A                    F:\lfs-test\bin\actionmerged.ico
A                    F:\lfs-test\bin\actionmodified.ico
A                    F:\lfs-test\bin\actionmoved.ico
A                    F:\lfs-test\bin\actionmovereplaced.ico
A                    F:\lfs-test\bin\WhatsApp Image 2018-06-02 at 00.03.01 (4).jpeg

Only path without slash worked.

I think the problem is here:
15:50:43.181278 trace git-lfs: filepathfilter: rejecting "bin/actionmodified.ico" via [bin\** *.tga bin\*.* bin\*]

git-lfs/2.8.0 (GitHub; windows amd64; go 1.12.2; git 30af66b)
git-trace.log

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions