Gitea ZIP Download of LFS Files downloads the pointer #12486

Closed
opened 2025-11-02 10:11:24 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @wienans on GitHub (Feb 15, 2024).

Description

Using LFS in my repo and downloading the zip file of the repo downloads the pointers of the LFS Files instead of the correctly stored LFS File. If i go to the file in the Browser and klick the single file download it downloads the correct file.

I wanted to test it on try.gitea.io but currently the register / sign in pages timed out and i am not sure if LFS is active on the Server.

important app.ini config

[server]
SSH_DOMAIN = 
DOMAIN = 
HTTP_PORT =  
ROOT_URL = 
APP_DATA_PATH = 
SSH_AUTHORIZED_KEYS_BACKUP = true
DISABLE_SSH = false
SSH_PORT =  
LFS_START_SERVER = true
OFFLINE_MODE = false
LFS_JWT_SECRET =

Gitea Version

1.21.5

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

2.42.0, Wire Protocol Version 2 Enabled

Operating System

Windows

How are you running Gitea?

1.21.5 built with GNU Make 4.3, go1.21.6 : bindata, sqlite, sqlite_unlock_notify
downloaded from your server

Database

SQLite

Originally created by @wienans on GitHub (Feb 15, 2024). ### Description Using LFS in my repo and downloading the zip file of the repo downloads the pointers of the LFS Files instead of the correctly stored LFS File. If i go to the file in the Browser and klick the single file download it downloads the correct file. I wanted to test it on try.gitea.io but currently the register / sign in pages timed out and i am not sure if LFS is active on the Server. important app.ini config ``` [server] SSH_DOMAIN = DOMAIN = HTTP_PORT = ROOT_URL = APP_DATA_PATH = SSH_AUTHORIZED_KEYS_BACKUP = true DISABLE_SSH = false SSH_PORT = LFS_START_SERVER = true OFFLINE_MODE = false LFS_JWT_SECRET = ``` ### Gitea Version 1.21.5 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version 2.42.0, Wire Protocol Version 2 Enabled ### Operating System Windows ### How are you running Gitea? 1.21.5 built with GNU Make 4.3, go1.21.6 : bindata, sqlite, sqlite_unlock_notify downloaded from your server ### Database SQLite
GiteaMirror added the type/bug label 2025-11-02 10:11:24 -06:00
Author
Owner

@yp05327 commented on GitHub (Feb 16, 2024):

Tested in GitHub. Not sure which is better, but GitHub has the same behavior.
https://github.com/yp05327/testlfs

@yp05327 commented on GitHub (Feb 16, 2024): Tested in GitHub. Not sure which is better, but GitHub has the same behavior. https://github.com/yp05327/testlfs
Author
Owner

@techknowlogick commented on GitHub (Feb 16, 2024):

Gitea just provides the archive that git exports which means it only provides pointers. There is an enhancement request open already to include the files in the archive. I am closing this in favour of that one.

@techknowlogick commented on GitHub (Feb 16, 2024): Gitea just provides the archive that git exports which means it only provides pointers. There is an enhancement request open already to include the files in the archive. I am closing this in favour of that one.
Author
Owner

@github-actions[bot] commented on GitHub (Feb 28, 2024):

Automatically locked because of our CONTRIBUTING guidelines

@github-actions[bot] commented on GitHub (Feb 28, 2024): Automatically locked because of our [CONTRIBUTING guidelines](https://github.com/go-gitea/gitea/blob/main/CONTRIBUTING.md#issue-locking)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12486