0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2025-02-16 17:11:52 +01:00
gitea/templates
wxiaoguang c5901b622d
Avoid unnecessary 500 panic when a commit doesn't exist (#28719)
In #26851, it assumed that `Commit` always exists when
`PageIsDiff==true`.

But for a 404 page, the `Commit` doesn't exist, so the following code
would cause panic because nil value can't be passed as string parameter
to `IsMultilineCommitMessage(string)` (or the StringUtils.Cut in later
PRs)
2024-01-07 18:20:22 +08:00
..
admin
api/packages/pypi
base Avoid unnecessary 500 panic when a commit doesn't exist (#28719) 2024-01-07 18:20:22 +08:00
code
custom
devtest
explore Add links to owner home page in explore (#28341) 2024-01-05 03:34:35 +00:00
mail
org
package
projects
repo Add merge arrow direction and update styling (#28523) 2024-01-05 17:38:56 +00:00
shared Fix tooltip of variable edit button (#28681) 2024-01-03 06:25:19 +00:00
status
swagger
user Make template DateTime show proper tooltip (#28677) 2024-01-02 20:09:18 +01:00
webhook
home.tmpl
install.tmpl
post-install.tmpl