gitea git clone failed when using ENABLE_GZIP for tar.gz file. #2286

Closed
opened 2025-11-02 04:31:12 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @simonwu-os on GitHub (Sep 3, 2018).

Dear all,
I use gitea using git lfs track '*.tar.gz'. I upload an tar file (downloaded from https://codeload.github.com/masterzen/nginx-upload-progress-module/tar.gz/v0.9.2). Its sha256 checksum is 'b286689355442657650421d8e8398bd4abf9dbbaade65947bb0cb74a349cc497'.
The lfs file stored in the server is correctly. Its checksum is the same. But when ENABLE_GZIP is true,
git clone the repo , it failed.
The terminal display:
Downloading nginx-upload-progress-module-0.9.2.tar.gz (17 KB)
Error downloading object: nginx-upload-progress-module-0.9.2.tar.gz (b286689): Smudge error: Error downloading nginx-upload-progress-module-0.9.2.tar.gz (b286689355442657650421d8e8398bd4abf9dbbaade65947bb0cb74a349cc497): cannot write data to tempfile "/works/gitworks/2018-develop/zdd/testout/out/test-repo/.git/lfs/incomplete/b286689355442657650421d8e8398bd4abf9dbbaade65947bb0cb74a349cc497.tmp": LFS: unexpected EOF

When I change ENABLE_GZIP to false, and restart gitea, it works for git clone.

So I think git lfs upload is correct. The problem is ENABLE_GZIP, when it's true, git clone don't works for the tar.gz file.
ps: we can git clone for other lfs files(such as we compile lib files. when ENABLE_GZIP is true) .

Originally created by @simonwu-os on GitHub (Sep 3, 2018). Dear all, I use gitea using git lfs track '*.tar.gz'. I upload an tar file (downloaded from https://codeload.github.com/masterzen/nginx-upload-progress-module/tar.gz/v0.9.2). Its sha256 checksum is 'b286689355442657650421d8e8398bd4abf9dbbaade65947bb0cb74a349cc497'. The lfs file stored in the server is correctly. Its checksum is the same. But when ENABLE_GZIP is true, git clone the repo , it failed. The terminal display: Downloading nginx-upload-progress-module-0.9.2.tar.gz (17 KB) Error downloading object: nginx-upload-progress-module-0.9.2.tar.gz (b286689): Smudge error: Error downloading nginx-upload-progress-module-0.9.2.tar.gz (b286689355442657650421d8e8398bd4abf9dbbaade65947bb0cb74a349cc497): cannot write data to tempfile "/works/gitworks/2018-develop/zdd/testout/out/test-repo/.git/lfs/incomplete/b286689355442657650421d8e8398bd4abf9dbbaade65947bb0cb74a349cc497.tmp": LFS: unexpected EOF When I change ENABLE_GZIP to false, and restart gitea, it works for git clone. So I think git lfs upload is correct. The problem is ENABLE_GZIP, when it's true, git clone don't works for the tar.gz file. ps: we can git clone for other lfs files(such as we compile lib files. when ENABLE_GZIP is true) .
GiteaMirror added the type/bug label 2025-11-02 04:31:12 -06:00
Author
Owner

@stale[bot] commented on GitHub (Jan 11, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Jan 11, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2286