LFS files missing in downloaded repository #6418

Closed
opened 2025-11-02 06:55:13 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @BitBlit88 on GitHub (Dec 1, 2020).

When using the "Download Repository" button next to the repository url and saving the repo as "zip" or "tar.gz", the resulting artifact doesn't contain any files that are stored in LFS.

Steps to reproduce:
git init
git lfs track ".mp3"
git add test.mp3
git commit -m "lfs test"
git remote add origin http://server:3001/apps/test.git
git push -u origin master

Try and download the pushed repo from the web interface.
The resulting "test.zip" contains the file "test.mp3" but its content is like

version https://git-lfs.github.com/spec/v1
oid sha256:8437dccdf0c9966893404f1537b6bffb51cd189e0ac19d57f49cba97acb7ff3d
size 5282118

So instead of including the LFS file itself, only the pointer is included.
The calculated repository size doesn't fit either. The Web interface shows 18kb, although the size with LFS objects are about 5MB.

I'm using Gitea 1.12.6 (arm-6)

Originally created by @BitBlit88 on GitHub (Dec 1, 2020). When using the "Download Repository" button next to the repository url and saving the repo as "zip" or "tar.gz", the resulting artifact doesn't contain any files that are stored in LFS. Steps to reproduce: git init git lfs track ".mp3" git add test.mp3 git commit -m "lfs test" git remote add origin http://server:3001/apps/test.git git push -u origin master Try and download the pushed repo from the web interface. The resulting "test.zip" contains the file "test.mp3" but its content is like version https://git-lfs.github.com/spec/v1 oid sha256:8437dccdf0c9966893404f1537b6bffb51cd189e0ac19d57f49cba97acb7ff3d size 5282118 So instead of including the LFS file itself, only the pointer is included. The calculated repository size doesn't fit either. The Web interface shows 18kb, although the size with LFS objects are about 5MB. I'm using Gitea 1.12.6 (arm-6)
GiteaMirror added the issue/duplicate label 2025-11-02 06:55:13 -06:00
Author
Owner

@zeripath commented on GitHub (Dec 1, 2020):

This is unfortunately a known issue and duplicated with #4773

@zeripath commented on GitHub (Dec 1, 2020): This is unfortunately a known issue and duplicated with #4773
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#6418