All LFS files got empty (no more Stored with Git LFS) after Gitea WebUI file editing and commit #2240

Closed
opened 2025-11-02 04:29:08 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @lanterna72 on GitHub (Aug 23, 2018).

  • Gitea version (or commit ref): 1.5
  • Git version: 2.18.0
  • Operating system: Windows Server 2016 Standard
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL (SqlServer 2016 Standard Edition)
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No (because gitlfs is not enabled)
    • Not relevant
  • Log gist:

config file has gitlfs enabled

...
LFS_START_SERVER = true
LFS_CONTENT_PATH = C:/gitea/data/lfs
LFS_JWT_SECRET = <<token>>
...

Description

Phase 1 - 1st commit

I do have a project with a markdown file in the root folder and a folder named 'lfs_files' where there are .png and .pdf files.

before 1st commit I enabled LFS and tracked png and pdf files as in the git lfs tutorial https://git-lfs.github.com

git lfs track "*.pdf"
git lfs track "*.png"
git add .gitattributes

I do the 1st commit and 1st pull, all ok, accessing the WebUI I see all files are committed and all LFS tracked files reports the correct size and label (Stored with Git LFS)

image

image

Phase 2 - Edit markdown file under gitea webui

I edit the index.md directly in the gitea webui and commit clicking on commit changes button

image

From now on all LFS files has 0 size and (Stored with Git LFS) is disappeared.

image

I tried with multiple repositories, simple or more complex all led to the same result.

Originally created by @lanterna72 on GitHub (Aug 23, 2018). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.5 - Git version: 2.18.0 - Operating system: Windows Server 2016 Standard - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [X] MSSQL (SqlServer 2016 Standard Edition) - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [X] No (because gitlfs is not enabled) - [ ] Not relevant - Log gist: *config file* has gitlfs enabled ```terminal ... LFS_START_SERVER = true LFS_CONTENT_PATH = C:/gitea/data/lfs LFS_JWT_SECRET = <<token>> ... ``` ## Description ### Phase 1 - 1st commit I do have a project with a markdown file in the root folder and a folder named 'lfs_files' where there are .png and .pdf files. before 1st commit I enabled LFS and tracked png and pdf files as in the git lfs tutorial https://git-lfs.github.com ```terminal git lfs track "*.pdf" git lfs track "*.png" git add .gitattributes ``` I do the 1st commit and 1st pull, all ok, accessing the WebUI I see all files are committed and all LFS tracked files reports the correct size and label *(Stored with Git LFS)* ![image](https://user-images.githubusercontent.com/1898670/44553128-d3e1f280-a72c-11e8-85ea-be2cd639dcbb.png) ![image](https://user-images.githubusercontent.com/1898670/44553146-e0fee180-a72c-11e8-9c78-f65efbb4974a.png) ### Phase 2 - Edit markdown file under gitea webui I edit the index.md directly in the gitea webui and commit clicking on **commit changes** button ![image](https://user-images.githubusercontent.com/1898670/44553342-6bdfdc00-a72d-11e8-9af7-8563859b0366.png) From now on all LFS files has 0 size and *(Stored with Git LFS)* is disappeared. ![image](https://user-images.githubusercontent.com/1898670/44553403-a6e20f80-a72d-11e8-9963-e45a4106077f.png) I tried with multiple repositories, simple or more complex all led to the same result. <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the issue/criticaltype/bug labels 2025-11-02 04:29:08 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2240