Skip to content

LFS files missing in downloaded repository #13773

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
BitBlit88 opened this issue Dec 1, 2020 · 1 comment
Closed

LFS files missing in downloaded repository #13773

BitBlit88 opened this issue Dec 1, 2020 · 1 comment
Labels
issue/duplicate The issue has already been reported.

Comments

@BitBlit88
Copy link

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)

@zeripath zeripath added the issue/duplicate The issue has already been reported. label Dec 1, 2020
@zeripath
Copy link
Contributor

zeripath commented Dec 1, 2020

This is unfortunately a known issue and duplicated with #4773

@zeripath zeripath closed this as completed Dec 1, 2020
@go-gitea go-gitea locked and limited conversation to collaborators Jan 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/duplicate The issue has already been reported.
Projects
None yet
Development

No branches or pull requests

2 participants