mirror of
https://github.com/go-gitea/gitea.git
synced 2024-05-11 05:55:29 +00:00
Properly handle and return empty string for dangling commits in GetBranchName (#11587)
This commit is contained in:
committed by
GitHub
parent
723b199271
commit
31df012968
@ -309,6 +309,7 @@ func Diff(ctx *context.Context) {
|
||||
ctx.Data["BranchName"], err = commit.GetBranchName()
|
||||
if err != nil {
|
||||
ctx.ServerError("commit.GetBranchName", err)
|
||||
return
|
||||
}
|
||||
ctx.HTML(200, tplCommitPage)
|
||||
}
|
||||
|
Reference in New Issue
Block a user