Include Git LFS objects in archives #10182

Closed
opened 2025-11-02 09:00:27 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @ziembek on GitHub (Jan 30, 2023).

Feature Description

Repository archive downloaded via http does not include LFS objects ( only links to objects ).

Example request for download archive:
curl --url https://${USER_NAME}:${USER_TOKEN}@${URL}/api/v1/repos/${ORG}/${REPO}/archive/${TAG}.tar.gz --output - | tar -xz

The feature to include LFS objects in archive is present in github.com.

https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-git-lfs-objects-in-archives-of-your-repository

Screenshots

No response

Originally created by @ziembek on GitHub (Jan 30, 2023). ### Feature Description Repository archive downloaded via http does not include LFS objects ( only links to objects ). Example request for download archive: curl --url https://${USER_NAME}:${USER_TOKEN}@${URL}/api/v1/repos/${ORG}/${REPO}/archive/${TAG}.tar.gz --output - | tar -xz The feature to include LFS objects in archive is present in github.com. https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-git-lfs-objects-in-archives-of-your-repository ### Screenshots _No response_
GiteaMirror added the issue/duplicate label 2025-11-02 09:00:27 -06:00
Author
Owner

@lunny commented on GitHub (Jan 30, 2023):

duplicated with #4773

@lunny commented on GitHub (Jan 30, 2023): 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#10182