-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LFS files no longer render #22193
Comments
#22042 is a really good idea! I have been eyeing that file for a few weeks now and thinking it would help me a lot if it was streamlined. So I'm 👍 👍 👍 cleaning it up. It just seems there was a small oversight. I missed it too -- getFileReader() looks like it should fall over to reading LFS content if it exists -- it's just..not. |
By the way, I tried to reproduce on try.gitea.io, but I hit a different bug: #22194 I'm confident if I could test it, I would see the same result. |
Fixup go-gitea#22042 (aka 1b32ed0). Fixes go-gitea#22193. Signed-off-by: Nick Guenther <nick.guenther@polymtl.ca>
There was just a missing check. Fixes #22193. Signed-off-by: Nick Guenther <nick.guenther@polymtl.ca>
Description
#22042 seems to have broken display of LFS files.
Build previous
I made an empty repo and uploaded two LFS files to it:
With this version, LFS READMEs and LFS files render with the "Stored with Git LFS" tag:
Build next
After re-starting Gitea, these files no longer render; they render -as if- Gitea recognizes them as markdown, but the content shows the LFS pointer instead:
Gitea Version
1.19.0+dev-189-g1b32ed014
Can you reproduce the bug on the Gitea demo site?
No
Git Version
2.34.1
Operating System
Ubuntu 22.04
How are you running Gitea?
Database
SQLite
The text was updated successfully, but these errors were encountered: