Description
almost same as #15592
If the tag is created using git tag tagname, there will be no problem. It was fixed in #16040.
If the tag is created using git tag -a tagname -m tagmessage, a 500 error will occur.
Gitea demo: https://demo.gitea.com/Aostas/test/compare/123...12
Gitea Version
1.24.5
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
https://gist.github.com/Aostas/9fc81a4e89a2ba5ecaa4e9576ac78e84
Screenshots
Git Version
2.30.2
Operating System
Debian 11
How are you running Gitea?
downloaded from dl.gitea.com
running in pve lxc
run from systemd
Database
MySQL/MariaDB