We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6708343 commit 3919d1fCopy full SHA for 3919d1f
routers/web/repo/release.go
@@ -381,7 +381,7 @@ func NewRelease(ctx *context.Context) {
381
382
ctx.Data["ShowCreateTagOnlyButton"] = false
383
ctx.Data["tag_name"] = rel.TagName
384
- ctx.Data["tag_target"] = rel.Target
+ ctx.Data["tag_target"] = util.IfZero(rel.Target, ctx.Repo.Repository.DefaultBranch)
385
ctx.Data["title"] = rel.Title
386
ctx.Data["content"] = rel.Note
387
ctx.Data["attachments"] = rel.Attachments
0 commit comments