README.md not working with Git LFS #2915

Closed
opened 2025-11-02 04:53:53 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @simonmeusel on GitHub (Feb 14, 2019).

  • Gitea version (or commit ref): 353282e
  • Git version: 2.20.1
  • Operating system: Linux with Docker
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

When creating a README.md file and tracking it with Git LFS, it will be displayed in the wrong way. When individually clicking the README.md and downloading it (View raw), the right content gets downloaded.

Screenshots

s

a

Originally created by @simonmeusel on GitHub (Feb 14, 2019). - Gitea version (or commit ref): 353282e - Git version: 2.20.1 - Operating system: Linux with Docker - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ## Description When creating a `README.md` file and tracking it with Git LFS, it will be displayed in the wrong way. When individually clicking the `README.md` and downloading it (View raw), the right content gets downloaded. ## Screenshots ![s](https://user-images.githubusercontent.com/16321843/52808772-fc6cf880-308e-11e9-9f62-def5ef9c9b43.png) ![a](https://user-images.githubusercontent.com/16321843/52808857-32aa7800-308f-11e9-8522-78a5465715d0.png)
GiteaMirror added the type/enhancement label 2025-11-02 04:53:53 -06:00
Author
Owner

@zeripath commented on GitHub (Feb 16, 2019):

Hmm... I can't believe that anyone would place their markdown readme file in LFS - however, I suppose for completeness sake I can adjust this.

Should we be allowing other formats like readme pdf etc?

@zeripath commented on GitHub (Feb 16, 2019): Hmm... I can't believe that anyone would place their markdown readme file in LFS - however, I suppose for completeness sake I can adjust this. Should we be allowing other formats like readme pdf etc?
Author
Owner

@simonmeusel commented on GitHub (Feb 17, 2019):

I tracked my README.md with Git LFS by accident (by tracking all files with Git LFS), but if you include Base64 images in the README.md, there is a good reason to track the README.md with Git LFS.

Should we be allowing other formats like readme pdf etc?

Not as part of this issue, but generally why not?

@simonmeusel commented on GitHub (Feb 17, 2019): I tracked my `README.md` with Git LFS by accident (by tracking all files with Git LFS), but if you include Base64 images in the `README.md`, there is a good reason to track the `README.md` with Git LFS. > Should we be allowing other formats like readme pdf etc? Not as part of this issue, but generally why not?
Author
Owner

@zeripath commented on GitHub (Feb 17, 2019):

It would simplify the code somewhat, we just make the readme section call the view file section with the appropriate information and set the template similarly

@zeripath commented on GitHub (Feb 17, 2019): It would simplify the code somewhat, we just make the readme section call the view file section with the appropriate information and set the template similarly
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2915