Skip to content

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

Closed
@lanterna72

Description

@lanterna72
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/criticalThis issue should be fixed ASAP. If it is a PR, the PR should be merged ASAPtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions