Closed
Description
- 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)
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
From now on all LFS files has 0 size and (Stored with Git LFS) is disappeared.
I tried with multiple repositories, simple or more complex all led to the same result.