Git LFS patterns with [[:space:]] are not parsed correctly

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: High
    • None
    • Affects Version/s: 3.1.2
    • Component/s: Git
    • None
    • Environment:

      Windows 10 (1809, OS Build 17763.379)

      SourceTree for Windows 3.1.2

    • Severity 2 - Major

      Git LFS patterns with [[:space:]] are not parsed correctly.

       

      Reproduction steps:

      1. Create a git repo with lfs and add a big file with a whitespace in it (for instance, "big file.bmp", which size is several MBs)
      2. Run:
        git lfs track "big file.bmp"
      1. Open .gitattributes file. Observe that whitespace was automatically replaced by [[:space:]]
      big[[:space:]]image.bmp filter=lfs diff=lfs merge=lfs -text
      
      1. Open Source Tree and try to stage this file. Observe the following warning: "The following files are 2 MB or larger and are not currently tracked in Git LFS."

       

        1. HPE2-T30-dumps.pdf
          614 kB
        2. JN0-661-dumps.pdf
          464 kB
        3. MB2-711-dumps.pdf
          264 kB
        4. MB2-712-dumps.pdf
          433 kB
        5. 1z0-1008-Exam-Dumps-2019.pdf
          188 kB
        6. 1z0-1010-Exam-Dumps-2019.pdf
          173 kB
        7. 1z0-1018-Exam-Dumps-2019.pdf
          190 kB
        8. 1z0-1024-Exam-Dumps-2019.pdf
          179 kB

            Assignee:
            Unassigned
            Reporter:
            Leonid Umanskiy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: