Readme image extensions are case sensitive #3247

Closed
opened 2025-11-02 05:05:25 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @worthy7 on GitHub (Apr 25, 2019).

  • Gitea version (or commit ref):
  • Git version:
  • Operating system:
  • 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

If I have files named
banana.PNG
apple.png

When referencing the image from markdown files, it will be picky about the case:
[banana](banana.png) won't work.
[apple](apple.PNG) won't work.

I'm not sure if this is intended or not, but by default case changes in names aren't recorded into git. So I have to full on delete, commit, remake the file with the correct filename if I want it to change.
https://stackoverflow.com/questions/17683458/how-do-i-commit-case-sensitive-only-filename-changes-in-git

Because git doesn't care about case changes by default, I think Gitea shouldn't care about it either.
...

Originally created by @worthy7 on GitHub (Apr 25, 2019). - Gitea version (or commit ref): - Git version: - Operating system: - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [x] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ## Description If I have files named `banana.PNG` `apple.png` When referencing the image from markdown files, it will be picky about the case: `[banana](banana.png)` won't work. `[apple](apple.PNG)` won't work. I'm not sure if this is intended or not, but by default case changes in names aren't recorded into git. So I have to full on delete, commit, remake the file with the correct filename if I want it to change. https://stackoverflow.com/questions/17683458/how-do-i-commit-case-sensitive-only-filename-changes-in-git Because git doesn't care about case changes by default, I think Gitea shouldn't care about it either. ...
Author
Owner

@worthy7 commented on GitHub (Apr 25, 2019):

Whops, GitLab issue!

@worthy7 commented on GitHub (Apr 25, 2019): Whops, GitLab issue!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3247