diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-01-09 23:51:21 +0800 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2017-01-09 21:54:03 +0100 |
commit | 7209917fd7f8da423b1d779c744b48431c7aaae8 (patch) | |
tree | eb1f25b17990ba315f024349415953d284dfe494 /routers/repo/release.go | |
parent | b316b2e7406c5011c37db8f1d0b542bae46762ba (diff) | |
download | gitea-7209917fd7f8da423b1d779c744b48431c7aaae8.tar.gz gitea-7209917fd7f8da423b1d779c744b48431c7aaae8.zip |
bug fix release
Diffstat (limited to 'routers/repo/release.go')
-rw-r--r-- | routers/repo/release.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/routers/repo/release.go b/routers/repo/release.go index c2e5aabf8f..01ed3c37a1 100644 --- a/routers/repo/release.go +++ b/routers/repo/release.go @@ -71,6 +71,11 @@ func Releases(ctx *context.Context) { return } + if len(rawTags) == 0 { + ctx.HTML(200, tplReleases) + return + } + if len(rawTags) <= (page-1)*limit { ctx.Handle(500, "Releases", errors.New("no more pages")) return |