FreeBSD Port: gogs-0.11.34_1 Fix file commit history pagination

Douglas Thrift douglas at douglasthrift.net
Sun Dec 31 04:03:51 UTC 2017


Hello,

I've already submitted a fix for this upstream:

https://github.com/gogits/gogs/pull/4965

But, I have also attached a patch to add to the port so we don't have to
wait for that to be merged and released.

Thanks!
-- 
Douglas William Thrift
<http://douglasthrift.net/>
-------------- next part --------------
--- routes/repo/commit.go.orig	2017-11-22 19:46:14 UTC
+++ routes/repo/commit.go
@@ -45,6 +45,7 @@ func RenderIssueLinks(oldCommits *list.L
 func renderCommits(c *context.Context, filename string) {
 	c.Data["Title"] = c.Tr("repo.commits.commit_history") + " · " + c.Repo.Repository.FullName()
 	c.Data["PageIsCommits"] = true
+	c.Data["FileName"] = filename
 
 	page := c.QueryInt("page")
 	if page < 1 {


More information about the freebsd-ports mailing list