Skip to content

Commit 3919d1f

Browse files
committed
fix
1 parent 6708343 commit 3919d1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/repo/release.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ func NewRelease(ctx *context.Context) {
381381

382382
ctx.Data["ShowCreateTagOnlyButton"] = false
383383
ctx.Data["tag_name"] = rel.TagName
384-
ctx.Data["tag_target"] = rel.Target
384+
ctx.Data["tag_target"] = util.IfZero(rel.Target, ctx.Repo.Repository.DefaultBranch)
385385
ctx.Data["title"] = rel.Title
386386
ctx.Data["content"] = rel.Note
387387
ctx.Data["attachments"] = rel.Attachments

0 commit comments

Comments
 (0)