Unable to open git lfs tracked files in downloaded archive

XMLWordPrintable

    • Type: Bug
    • Resolution: Not a bug
    • Priority: Low
    • None
    • Affects Version/s: 7.17.0
    • Component/s: Git LFS
    • None
    • 1
    • Severity 3 - Minor

      Issue Summary

      When a repo is downloaded (.zip archive) git lfs tracked files cannot be opened

      This is reproducible on Data Center: yes

      Steps to Reproduce

      1. Enable lfs in remote repo via Bitbucket UI
      2. Install git lfs on client machine & track files
      3. Push lfs tracked files to repo
      4. Download the repo via the UI
      5. Unzip the download and try to view the file

      Expected Results

      Files should be opened and viewed

      Actual Results

      • No errors are logged in Bitbucket
      • Client machine complains that the file can't be opened
      • Binary files are only 1kb in size
      • When opening the binary file with a text editor the contents contain LFS pointer file eg.
        version https://git-lfs.github.com/spec/v1
        oid sha256:1b9552a63dcd56981e28cd02602769786adec54e164133c1650ec69250bfe618
        size 7303807
        

      Workaround

      • clone the repo and git lfs pull to get the lfs tracked files locally
      • Download the file directly via the Bitbucket UI

            Assignee:
            Unassigned
            Reporter:
            Nate Hansberry (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: