Skip to content

Commit dab398d

Browse files
committed
Fix a bug returning 404 when display a single tag with no release
1 parent db545b2 commit dab398d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

routers/web/repo/release.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ func SingleRelease(ctx *context.Context) {
282282
TagNames: []string{ctx.Params("*")},
283283
// only show draft releases for users who can write, read-only users shouldn't see draft releases.
284284
IncludeDrafts: writeAccess,
285+
IncludeTags: true,
285286
})
286287
if err != nil {
287288
ctx.ServerError("getReleaseInfos", err)

0 commit comments

Comments
 (0)